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

桌面圖示顏色變 256 色、顯示異常?刪除 IconCache.db 重建圖示快取

編輯:Windows XP 系統介紹

現象描述

桌面與工作列圖示突然變色(僅 256 色)、顯示模糊、錯位或變成白紙圖示,重新整理(F5)無效。

原因分析

Windows 為加速圖示顯示,會將已解析的圖示資料快取於隱藏檔 IconCache.db(XP)或 ShellIconCache(Win98/Me/2000)。當色彩深度設定變更、解析度調整、或快取檔損壞時,系統讀取錯誤快取導致圖示異常。

解決步驟(以 Windows XP 為例)

  1. 開啟「我的電腦」→ 「工具」→ 「資料夾選項」→ 「檢視」→ 勾選「顯示隱藏的檔案和資料夾」→ 取消勾選「隱藏受保護的作業系統檔案」。
  2. 在總管網址列輸入:%userprofile%\Local Settings\Application Data 按 Enter。
  3. 找到 IconCache.db,按 Delete 刪除(或移至回收桶)。
  4. 登出並重新登入,或重新啟動電腦。系統將自動重建乾淨的圖示快取。

各版本 Windows 圖示快取路徑對照表

作業系統圖示快取檔案完整路徑
Windows XP%userprofile%\Local Settings\Application Data\IconCache.db
Windows 2000%windir%\ShellIconCache
Windows 98 / Me%windir%\ShellIconCache
Windows Vista / 7 / 8 / 10 / 11%localappdata%\IconCache.db

進階:批次檔一鍵清除(適用 Vista 以上)

@echo off
taskkill /f /im explorer.exe
del /a /q "%localappdata%\IconCache.db"
start explorer.exe

儲存為 RebuildIconCache.bat 以系統管理員身分執行即可。

Copyright © Windows教程網 All Rights Reserved