Rebuilding Icon Cache?

Conejo

Well-known member
Joined
Jul 24, 2013
Messages
65
Location
USA
Programming Experience
1-3
How do you call up a function to rebuild the icon cache in VB.Net, thanks.
 
Run the following commands through a shell instance:

VB.NET:
ie4uinit.exe -ClearIconCache
taskkill /IM explorer.exe /F
DEL "%localappdata%\IconCache.db" /A
shutdown /r /f /t 00

Beware that this NEEDS a reboot, so make sure you advertise it fully before issuing a forced reboot.
 
Here's the contents of a batch file that I use to rebuild the icon cache. It does not require a reboot.
VB.NET:
taskkill /im explorer.exe /f
cd appdata\local
attrib -h iconcache.db
del iconcache.db
explorer.exe
You can either execute that via a command prompt or put it in a batch file and execute that.
 
Back
Top