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

Win7 EXE 圖標莫名丟失?一鍵批處理重建圖標緩存

編輯:Win7 常見問題解答

Win7 下 EXE 圖標變白板/錯亂但功能正常,經典圖標緩存損壞癥狀。保存以下代碼為 icoRestore.bat 以管理員運行,30 秒自動修復(過程中桌面會短暫消失):

taskkill /im explorer.exe /f
cd /d %userprofile%\appdata\local
del iconcache.db /a
start explorer.exe
exit

原理:強制結束 explorer、刪除用戶目錄下 iconcache.db、重啟 explorer 觸發緩存重建。作者:萊恩哈特

Copyright © Windows教程網 All Rights Reserved