系統垃圾佔據百 MB 甚至 GB 空間,拖慢效能。記事本存成 .bat,雙擊 30 秒清空所有常見垃圾類型,比優化大師更徹底、不傷系統檔。
清除系統垃圾.bat (副檔名必為 .bat)。@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 /q %userprofile%\recent\*.*
echo 清除系統垃圾完成!
echo. & pause
*.tmp / *._mp — 暫存檔*.log — 日誌檔*.gid — 說明檔索引*.chk — 磁碟檢查片段*.old / *.bak — 備份檔recycled — 回收筒殘留prefetch — 預讀快取 (重開機自動重建)temp / Temporary Internet Files / cookies / recent — 使用者暫存/網頁快取/Cookie/最近使用僅刪除公認垃圾路徑/副檔名,**不觸動系統核心檔/使用者文件/登錄檔**,公司/家用環境均安全。可排程每週自動執行。