天天看点

专用垃圾清理工具

@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,如需转载请自行联系原作者