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
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
Cheers Jussi