天天看點

專用垃圾清理工具

@echo off  

title 專用垃圾清理器  

echo 喬磊 制作  

echo.  

echo 正在清除系統垃圾檔案,請稍等...  

set alldrive=c d e f g h i j k l m n o p q r s t u v w x y z  

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  

for %%a in (%alldrive%) do if exist %%a:\Recycled rd /s /q %%a:\Recycled   

for %%a in (%alldrive%) do if exist %%a:\RECYCLER rd /s /q %%a:\RECYCLER   

del /f /s /q %windir%\*.bak  

del /f /s /q %windir%\prefetch\*.*  

del /f /s /q %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>nul 

本文轉自sucre03 51CTO部落格,原文連結:http://blog.51cto.com/sucre/394647,如需轉載請自行聯系原作者