Hi, first time poster here :-)
I've benefited from this site quite often, and have again today with this thread. I thought I'd give something back and suggest improvements for this handy guide.
I've amended the batch file and uploaded to:
http://www.proactiveservices.co.uk/R...Icon_Cache.zip
Used the %localappdata% variable and a filename variable to provide greater accuracy and flexibility.
Enclosed references to the IconCache file with quotes to ensure paths with spaces are handled correctly.
Batch no longer does anything if the IconCache file does not exist - explorer kill / system shutdown not necessary in this case.
Removed shutdown code as a shell restart is all that's needed. Confirmed on Vista x64 SP2 and Win 7 x64 SP1.
Amended shell restart line so that the batch file is not "held up" after launching explorer.
The manual steps can be similarly amended to:
- taskkill /IM explorer.exe /F
- DEL "%localappdata%\IconCache.db" /A
- start explorer.exe
Also you can mark this is working on Vista too - it works just fine on my Vista x64 SP2 system.