Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win7 磁碟清理指令 `cleanmgr /sageset:99` 設定一次,以後一鍵清理

編輯:關於 Windows

Win7 內建「磁碟清理」功能強大,但每次都要勾選項目很麻煩。用指令預設清理項目,以後執行單一指令即可完成清理。

設定與使用步驟

  1. `Win+R` → 輸入 cleanmgr /sageset:99 → 確定。
  2. 彈出「磁碟清理設定」視窗,勾選欲清理的項目(暫存檔、回收筒、縮圖快取等) → 確定。此設定將寫入登錄檔永久保存。
  3. 以後需清理時:`Win+R` → 輸入 cleanmgr /SAGERUN:99 → 確定,系統自動依預設項目清理,無需再勾選。




亦可建立 `.bat` 批次檔雙擊執行,或加入排程工作定期自動清理。

Copyright © Windows教程網 All Rights Reserved