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

Win7 EXE圖示消失一鍵修復:重建圖示快取命令腳本

編輯:Windows 7 系統介紹

安裝軟體(如Dreamweaver 5.5)後發現桌面捷徑、開始選單圖示變成白紙/預設圖示,實為圖示快取資料庫損毀。Win7將圖示快取存於 %LocalAppData%\IconCache.db,刪除後重啟檔案總管即可自動重建。

一鍵修復批次檔(建議另存為 FixIconCache.bat 以系統管理員執行)

@echo off
taskkill /im explorer.exe /f
cd /d "%LocalAppData%"
del IconCache.db /a
start explorer.exe
exit

手動執行步驟

  1. Win+R 輸入 cmd 開啟命令提示字元
  2. 依序輸入以下指令(每行按Enter):
taskkill /im explorer.exe /f
cd /d %userprofile%\AppData\Local
del IconCache.db /a
start explorer.exe
exit

原理解析

  • taskkill /f /im explorer.exe:強制結束檔案總管進程,釋放IconCache.db鎖定
  • cd /d %LocalAppData%:切換至本地應用資料目錄(含IconCache.db)
  • del IconCache.db /a:刪除隱藏/系統屬性的快取檔
  • start explorer.exe:重啟檔案總管,系統自動掃描重建圖示快取

適用場景

  • 新安裝軟體無圖示
  • 系統更新後圖示異常
  • 主題切換導致圖示錯亂
  • Win7 64位旗艦版實測有效

進階補充

若問題持續,嘗試刪除 %LocalAppData%\Microsoft\Windows\Explorer 目錄下所有 iconcache_*.db 及 thumbcache_*.db 檔案,並檢查磁碟錯誤 chkdsk /f。

Copyright © Windows教程網 All Rights Reserved