Windows系統清理垃圾

優化系統和減少磁碟占用成為用戶不得不面對的一個問題。關閉系統休眠,輕鬆節省幾個G的存儲空間,並且清除一些系統垃圾.

1.
關閉系統休眠方法,使用CMD

powercfg –h off

2.
清除系統垃圾部分是這樣:

先開一個文字文件,也就是.txt副檔名的那個

貼上以下

@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

存檔之後把副檔名從 txt 改成 bat

最後在這個檔案,滑鼠右鍵,選“以系統管理員執行”即可