用DOS能这样编写程序么

来源:百度知道 编辑:UC知道 时间:2024/05/31 17:19:17
edit a.bat
@del /s /f /q %systemdrive% *.tmp
@del /s /f /q %systemdrive% *._mp
@del /s /f /q %systemdrive% *.log
@del /s /f /q %systemdrive% *.old
@del /s /f /q %systemdrive% *.chk
@del /s /f /q %systemdrive% *.bak
@del /s /f /q %systemdrive% *.gid

我要问的是,以上扩展名的程序能不能删除阿,我怎么一执行我编的这个程序,系统立即把快速启动里的文件都删除了,
@del /s /f /q %systemdrive%\recycler
@del /s /f /q %systemdrive%\prefetch
@del /s /f /q %systemroot%\temp
@del /s /f /q "%userprofile%\cookies"
@del /s /f /q "%userprofile%\recent"
@del /s /f /q "%userprofile%\Local Settings\History"
@del /s /f /q "%userprofile%\Local Settings\temp"
@cls
@echo 垃圾文件清理完成,感谢使用!作者QQ95595633
@pause@del /s /f /q %systemdrive%\recycler
@del /s /f /q %systemdrive%\prefetch

这是批处理程序。上面这些只是删除相应扩展名的文件,应该跟快速启动那里无关。
一般说来,这些扩展名的文件是可以删除的。

这个也不用dos编辑啊,直接打开文本输入这些之后另存为a.bat就行啊。

至于删除这些快速启动里东西的话,到桌面快速启动栏别点到图标,之后有一个右键.........打开后你能看到那些东西了,自己删除就行了。

具体要找的路径是C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch