@Echo off.
Set iconcache=%localappdata%\IconCache.db
Set iconcache_x=%localappdata%\Microsoft\Windows\Explorer\iconcache*
Echo.
Echo the Explorer process must be temporarily killed before deleting the IconCache.db file.
Echo.
Echo please save all open work before continuing.
Echo.
Pause.
Echo.
If exist "%iconcache%" goto delete.
Echo.
Echo the %localappdata%\IconCache.db file has already been deleted.
Echo.
If exist "%iconcache_x%" goto delete.
Echo.
Echo the %localappdata%\Microsoft\Windows\Explorer\IconCache_*.db files have already been deleted.
Echo.
Exit /b
Delete.
Echo.
Echo attempting to delete IconCache.db files...
Echo.
ie4uinit.exe -show
Taskkill /ım explorer.exe /f
Timeout /t 2 >nul
Del /a /f /q "%iconcache%"
Del /a /f /q "%iconcache_x%"
Start explorer.exe