@echo off
echo 请关闭所有软件和程序,
echo 正在清除系统临时文件,请稍等......
pause
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%/RECYCLER/*.*
del /f /s /q %windir%/*.bak
del /f /s /q %windir%/prefetch/*.*
rd /s /q %windir%/temp & md %windir%/temp
rd /s /q %systemdrive%/temp & md %systemdrive%/temp
del /f /q %userprofile%/cookies/*.*
del /f /q %userprofile%/recent/*.*
del /f /s /q "%userprofile%/Local Settings/Temporary Internet Files/*.*"
rd /s /q "%userprofile%/Local Settings/Temp/" & md "%userprofile%/Local Settings/Temp/"
rd /s /q "%systemdrive%/Documents and Settings/Administrator/Local Settings/Temp/" & md "%systemdrive%/Documents and Settings/Administrator/Local Settings/Temp/"
rd /s /q "%systemdrive%/Documents and Settings/ALL USERS/Local Settings/Temp/" & md "%systemdrive%/Documents and Settings/ALL USERS/Local Settings/Temp/"
rd /s /q "%systemdrive%/Documents and Settings/Default User/Local Settings/Temp/" & md "%systemdrive%/Documents and Settings/Default User/Local Settings/Temp/"
rd /s /q "%userprofile%/Local Settings/Temporary Internet Files/" & md "%userprofile%/Local Settings/Temporary Internet Files/"
rd /s /q "%systemdrive%/Documents and Settings/Administrator/Local Settings/Temporary Internet Files/" & md "%systemdrive%/Documents and Settings/Administrator/Local Settings/Temporary Internet Files/"
rd /s /q "%systemdrive%/Documents and Settings/ALL USERS/Local Settings/Temporary Internet Files/" & md "%systemdrive%/Documents and Settings/ALL USERS/Local Settings/Temporary Internet Files/"
rd /s /q "%systemdrive%/Documents and Settings/Default User/Local Settings/Temporary Internet Files/" & md "%systemdrive%/Documents and Settings/Default User/Local Settings/Temporary Internet Files/"
del /f /s /q "%userprofile%/recent/*.*"
echo 清除系统临时文件完成!
echo. & pause