专用垃圾清理工具脚本
时间:2010-10-09 来源:fireworks
- @echo off
- title 专用垃圾清理器
- echo 乔磊 制作
- 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
相关阅读 更多 +