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

Win7 EXE 應用程式圖示消失變白紙?重建 IconCache.db 一鍵修復

編輯:Win7 常見問題解答

安裝軟體後桌面/工作列/開始選單圖示變成白紙/預設圖示,甚至點擊無反應。這是圖示快取資料庫 IconCache.db 損毀。透過命令提示字元刪除快取並重啟 Explorer 即可秒修復。

修復指令(以系統管理員身分執行 cmd)

taskkill /im explorer.exe /f
cd /d %userprofile%\AppData\Local
del IconCache.db /a
start explorer.exe
exit

批次檔一鍵執行

  1. 桌面右鍵 → 「新增」→ 「文字文件」→ 貼上上述指令。
  2. 另存為 FixIconCache.bat。
  3. 右鍵 → 「以系統管理員身分執行」→ 螢幕閃爍後圖示恢復正常。

原理說明

  • IconCache.db 位於 %LocalAppData%\IconCache.db,儲存所有殼介面圖示快取。
  • 損毀原因:系統更新中斷、第三方主題/殼擴充衝突、磁碟錯誤、清理工具誤刪。
  • 刪除後 Explorer 重啟會自動掃描註冊表重建快取,圖示恢復原貌。

進階:徹底清理所有圖示/縮圖快取

@echo off
taskkill /f /im explorer.exe
attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"
del /f "%userprofile%\AppData\Local\IconCache.db"
attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /f
start explorer.exe

存為 DeepFixIconCache.bat 以管理員執行,解決頑固圖示異常、系統匣圖示殘留、縮圖顯示錯誤等綜合問題。

一鍵重建圖示快取,EXE 圖示消失、變白紙、錯位全搞定,免去重裝軟體之苦。

Copyright © Windows教程網 All Rights Reserved