Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

兩步驟快速清除系統垃圾檔案

編輯:Win7 系統基礎知識

系統垃圾指系統不再需要的檔案:瀏覽網頁產生的暫存檔、安裝後解除安裝殘留的檔案與登錄檔鍵值。佔用磁碟空間、拖慢系統。

自製垃圾清除批次檔(兩步驟完成)

  1. 開啟「記事本」,複製下方黑色程式碼貼上,「另存新檔」→路徑選「桌面」→存檔類型「所有檔案」→檔名 清除系統垃圾.bat(副檔名必須 .bat)。
  2. 雙擊執行,約一分鐘清理完成,螢幕提示「清除系統垃圾完成!」
@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

以後雙擊即可快速清理。此法比優化大師好用,且不破壞系統檔案,公司/家裡電腦皆適用。

提醒:手動刪除垃圾檔風險大,軟體常留備份後路,清理系統垃圾盡量勿手動,否則出問題難復原。

Copyright © Windows教程網 All Rights Reserved