随着电脑XP系统的使用时间越长,系统里的垃圾文件就会越来越多,现在有各种工具来帮助我们清理垃圾,像360安全卫士,金山卫士等等,但是如果有时候没有安装这些怎么清理系统垃圾文件呢,用下面这些代码,保存在文本里,把后缀改成bat,运行就OK了。
@echo off echo 正在清除系统垃圾文件,请稍等...... del /f /s /q "C:\Documents and Settings\user\Application Data\Google\Local Search History\*.*" del /f /s /q "C:\Documents and Settings\user\Local Settings\Temporary Internet Files\*.*" del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\kb*.log del /f /s /q %windir%\*.bak del /f /s /q %windir%\temp\*.* del /f /a /q %systemdrive%\*.sqm del /f /s /q %windir%\SoftwareDistribution\Download\*.* del /f /s /q "%userprofile%\cookies\*.*" del /f /s /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 "C:\WINDOWS\SoftwareDistribution\Download\*.*" del /f /s /q "C:\WINDOWS\Driver Cache\i386\sp2.cab" del /f /s /q "C:\WINDOWS\$NtServicePackUninstall$" rd /s/q "C:\Documents and Settings\user\Local Settings\Temp" md "C:\Documents and Settings\user\Local Settings\Temp" echo 清除系统垃圾文件完成!
#1被ivan在2010年07月10日 - 11:22 上午
引用
挺有用的,多谢
[回复]
8度 回复:
七月 11th, 2010 at 12:18 上午
呵呵,好用就好!
[回复]