Fixing Broken Desktop Icons

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Fixing Broken Desktop Icons

Post by jussij »

Windows use a cache to manage program icons.

While this works fine most of the time, sometimes that cache gets out of wack and as a result the icons get drawn incorrectly.

Since Windows 8.1 the icon cache is located in this hidden file location:

Code: Select all

%UserProfile%\AppData\Local\IconCache.db
The following batch file can be used to flush this cache and restore and broken icons:

Code: Select all

@echo off
:: Stop Explorer
taskkill /F /IM Explorer.exe

:: Delete the cache
set "path=%UserProfile%\AppData\Local\IconCache.db"
if exist "%path%" del /A:H "%path%"

:: Restart Explorer
start explorer.exe
exit
If this does not fix this issue then more drastic measures might be needed as described here: https://www.windowscentral.com/how-rese ... windows-10

Cheers Jussi
Post Reply