瑞星卡卡安全论坛技术交流区系统软件 交你做一款自动清除系统垃圾文件的小软件,本人就在使用.

12   1  /  2  页   跳转

交你做一款自动清除系统垃圾文件的小软件,本人就在使用.

交你做一款自动清除系统垃圾文件的小软件,本人就在使用.

@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo. & pause

把上面文字保存在TXT里面,改后缀为BAT就行了.

最后编辑2006-06-13 12:40:50
分享到:
gototop
 

好~~~~
gototop
 

gototop
 

真是太好了
gototop
 

转自网友世界?或其他地方,还是楼主自己作的?
gototop
 

转帖
gototop
 

好像删掉的不都是垃圾文件也
.log是日志文件,可能有些有用的记录会保存在里面
cookies\是网站信息文件比如论坛记住密码功能,在个人电脑上的话也许有用(我就用的:P论坛都不用每次都要打密码用户名)
recent\是最近使用过的文件,当你进行大量文档编辑的时候,可以不用从可能比较复杂的文件夹里去找,节约时间
gototop
 

试试看
gototop
 

楼主,这个删掉的文件在回收站里,还是彻底清除啊,我刚试了以下,好多东西都找不见了
gototop
 

引用:
【爱哭的小鱼的贴子】@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo. & pause

把上面文字保存在TXT里面,改后缀为BAT就行了.


...........................

del /y %windir%\Prefetch\*.pf
我再加上一句:将系统里的扩展名为pf的文件也全部删除,减少系统的预读时间,它将有助于提升系统的启动速度。
gototop
 
12   1  /  2  页   跳转
页面顶部
Powered by Discuz!NT