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

Win7 一鍵清理 Cookie 批次檔製作教學:記事本撰寫自動清除所有帳號 Cookie 與暫存檔

編輯:Windows 7 系統介紹

想一鍵清除所有使用者的 Cookie 與瀏覽器垃圾檔?用記事本撰寫批次檔自動化處理。

製作步驟

  1. 開啟記事本 → 貼上以下程式碼:
@echo off
color 0a
cd /d %SystemDrive%
dir "%SystemDrive%\Documents and Settings\" /ad/b >"%SystemDrive%\DirTmp.txt"
for /f %%a in (%SystemDrive%\DirTmp.txt) do (
  del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Cookies\*.*"
  del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Local Settings\Temporary Internet Files\*.*"
)
del /f /q %SystemDrive%\DirTmp.txt
pause
  1. 「檔案」 → 「另存新檔」
  2. 「儲存類型」選「所有檔案」 → 檔名輸入 ClearCookie.bat → 儲存
  3. 雙擊執行 → 自動清理所有帳號 Cookie 與暫存檔
  4. C 槽根目錄會產生 DirTmp.txt(帳號清單),可手動刪除

效果

免逐一手動清除,省時省力。

Copyright © Windows教程網 All Rights Reserved