可以幫助您在Windows在安裝和使用過程中都會(huì)產(chǎn)生相當(dāng)多的垃圾文件,包括臨時(shí)文件(如:*.tmp、*._mp)日志文件(*.log)、臨時(shí)幫助文件(*.gid)、磁盤檢查文件(*.chk)、臨時(shí)備份文件(如:*.old、*.bak)以及其他臨時(shí)文件。
特別是如果一段時(shí)間不清理IE的臨時(shí)文件夾“Temporary Internet Files”,其中的緩存文件有時(shí)會(huì)占用上百M(fèi)B的磁盤空間。這些LJ文件不僅僅浪費(fèi)了寶貴的磁盤空間,嚴(yán)重時(shí)還會(huì)使系統(tǒng)運(yùn)行慢如蝸牛。
@echo off
echo 正在清理系統(tǒng)垃圾文件,請(qǐng)稍等......
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\*.*"
echo 清理系統(tǒng)垃圾完成!