清理系统的批处理文件

简介:
这是个网上找到的专门清理系统垃圾文件的批处理脚本,把以下内容复制到一个文本文件下,然后重命名比如 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
相关文章
|
7月前
非常实用的清理buffcache小脚本
非常实用的清理buffcache小脚本
|
Windows
电脑win系统开机自动运行批处理、脚本等的方法/开机自动执行bat脚本
电脑win系统开机自动运行批处理、脚本等的方法/开机自动执行bat脚本
922 0
|
6月前
|
Windows
卸载应用后,删除安装根目录下的所有文件,提示已在另一进程打开,在资源管理器进程中找不到该程序的解决
卸载应用后,删除安装根目录下的所有文件,提示已在另一进程打开,在资源管理器进程中找不到该程序的解决
49 0
|
7月前
|
Shell Linux
Linux使用Shell脚本定时清理日志
Linux使用Shell脚本定时清理日志
115 1
如何清理文件夹(怎样清理电脑C盘无用垃圾文件)
如何清理文件夹(怎样清理电脑C盘无用垃圾文件)
3184 0
|
11月前
批处理清理SVN文件BAT脚本
批处理清理SVN文件BAT脚本
59 0
|
Windows
BAT批处理文件无法运行提示“/E /I /Y ‘XCOPY‘ 不是内部或外部命令,也不是可运行的程序或批处理文件”解决方法
BAT批处理文件无法运行提示“/E /I /Y ‘XCOPY‘ 不是内部或外部命令,也不是可运行的程序或批处理文件”解决方法
954 0
BAT批处理文件无法运行提示“/E /I /Y ‘XCOPY‘ 不是内部或外部命令,也不是可运行的程序或批处理文件”解决方法
|
安全 数据安全/隐私保护 C++