手動開啟「網際網路選項」清除暫存檔步驟繁瑣。利用 deltree 命令編寫批次檔,雙擊即可徹底清空,甚至放入「啟動」群組開機自動執行。
@echo off
cd /d "C:\Windows\Local Settings\Temporary Internet Files"
C:\Windows\Command\deltree /y *.*
需先從 9x 系統複製 deltree.exe 至 C:\WINNT\System32(或 C:\Windows\System32):
@echo off
cd /d "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files"
C:\WINNT\System32\deltree /y *.*
注意: 路徑中的使用者名稱(Administrator)請依實際登入帳號修改;或使用環境變數 %USERPROFILE% 通用寫法:
cd /d "%USERPROFILE%\Local Settings\Temporary Internet Files"
%SystemRoot%\System32\deltree /y *.*
暫存檔實際存放於 Temporary Internet Files\Content.IE5 子目錄。僅刪除 Content.IE5 無法徹底清除,必須在 Temporary Internet Files 目錄下執行 deltree /y *.* 刪除所有檔案與子目錄。
shell:startup),開機自動清理前次殘留RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 一鍵清除暫存檔批次檔方案零依賴、極速執行,仍是輕量自動化清理的經典選擇。