且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

清理系统的批处理文件

更新时间:2022-10-02 21:04:57

这是个网上找到的专门清理系统垃圾文件的批处理脚本,把以下内容复制到一个文本文件下,然后重命名比如 cclean.bat,呵呵,试下吧,效果不错。
 
echo .正在清理系统垃圾,请耐性等待
@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\*.*    
rd /s /q %windir%\temp & md %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\*.*" 
cls
echo.
echo.
echo.
echo.   
echo 清除系统垃圾完毕    
echo. 
echo.
echo.
echo.
pause
goto menu
end    
::垃圾清理完成
本文转自你是路人甲还是霍元甲博客51CTO博客,原文链接http://blog.51cto.com/world77/321061如需转载请自行联系原作者

world77