Windows 2000/XP/Server 2003/Vista/Server 2008 垃圾清理批处理

这个批处理是蓝蓝小雪根据网上流传很广的一个批处理进行修改、增强得到的。把下面内容复制到记事本中,保存的时候的文件名请输入成"cleansys.bat"(注意引号),然后就可以运行了。请在开始清理前先关闭所有其他程序(特别是 Internet Explorer 等程序),并注意使用管理员模式运行本程序。
@echo off
echo Windows 博客(WIN.Snow518.CN)特别提醒:
echo   请在开始清理前先关闭所有其他程序(特别是 Internet Explorer 等程序),并注意使用管理员模式运行本程序。
echo   做到这些之后请按任意键继续 . . .
pause > nul
echo. & echo. & echo. & echo. & echo. & echo. & echo. & echo. & echo.
echo Windows 博客(WIN.Snow518.CN)正在帮您清除系统垃圾文件,请稍等......
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\*.*"
rd /s /q %temp% & md %temp%
del /f /s /q "%userprofile%\recent\*.*"
echo. & echo. & echo. & echo. & echo. & echo. & echo. & echo. & echo.
echo Windows 博客(WIN.Snow518.CN)报告:清除系统垃圾完成!
echo. & pause

没有评论:

发表评论