close

在Windows在安裝和使用過程中都會產生相當多的垃圾文件,包括臨時文件、日誌文件、臨時幫助文件、磁盤檢查文件、臨時備份文件,特別是如果一段時間不清理IE的臨時文件夾,其中的緩存文件有時會佔用上百MB的磁盤空間,嚴重時還會使系統運行慢如蝸牛...





首先打開「記事本」,把下面的紅字複製進去



@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\*.*"

echo 清除系統垃圾完成!

echo. & pause


 
然後另存新檔,文件名定為「清除系統垃圾.bat」,再來就點兩下,大概跑了不到一分鐘,這樣就會空出很多空間,也可以讓電腦跑順一點...

arrow
arrow
    全站熱搜

    kolevi12 發表在 痞客邦 留言(0) 人氣()