萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Windows XP 教學

WinXP 系統垃圾一鍵清理:自製 BAT 批次檔,免安裝軟體、秒速清爽

厭倦用清理軟體掃描系統垃圾?WinXP 內建批次處理功能,複製幾行指令存成 .bat 檔,雙擊即可極速清理暫存檔、記錄檔、回收站、Cookies 等垃圾,百試百靈。

製作步驟

  1. 「開始」→「所有程式」→「附屬應用程式」→「記事本」
  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

參數說明與自訂提示

  • 請直接複製貼上,勿手打以免錯誤
  • del ... recycled\*.* 為清空回收站(FAT32 有效),不想清回收站可刪此行
  • del ... cookies\*.* 會清除網頁表單與登入密碼,需保留密碼請刪此行

記事本貼上批次指令

  1. 「檔案」→「另存新檔」
  2. 檔名輸入自訂名稱,副檔名必須為 .bat(如 系統清理.bat)
  3. 存檔類型選「所有檔案」→ 存檔

另存新檔對話框

設定檔名、類型、存檔

  1. 雙擊執行 系統清理.bat,等待提示「按任意鍵繼續...」即完成

批次檔執行清理完成

此法適用各版本 Windows,無需安裝任何第三方軟體,簡單、快速、徹底。平時可建立捷徑置於桌面,想清理時雙擊即用。

copyright © 萬盛學電腦網 all rights reserved