使用前请注意路径,千万小心,别把WINDOWS干趴了.由于我不使用IE,所以IE保存的cookies我都干掉了,请使用中仔细检查每一个DEL条目.
批处理的内容:
@title 垃圾清理 @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*.* del /f /s /q %TMP% del /f /s /q %TEMP% del /f /q %userprofile%cookies*.* del /f /q %userprofile%recent*.* del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*" del /f /s /q "%userprofile%Local SettingsTemp*.*" del /f /s /q "%userprofile%recent*.*" DEL /f /s /q E:\WinUserConfig\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5\Logs\*.*
echo 打完!收工! pause
|