Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Icon Cache - Rebuild

20 Jan 2013   #150

64-bit Windows 10 Pro

You're welcome tkrojam.

My System SpecsSystem Spec
04 Feb 2013   #151


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:

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.
My System SpecsSystem Spec
04 Feb 2013   #152

64-bit Windows 10 Pro

Hello ProactiveSvcs, and welcome to Seven Forums.

Thank you for the touchup.
My System SpecsSystem Spec
04 Feb 2013   #153

Windows 7 Ultimate x64

co-works icon's were all jacked up today. This fixed there issues with ease. Thanks.
My System SpecsSystem Spec

17 Feb 2013   #154
Suny Buffalo

Win7Pro 32-bit
Bunch of Thanks!

The command-line did it for me. My admin. acct. displayed well, but my stand. acct. did not. Reseting the iconcache did the job thanks a bunch!!

When it comes to icon shortcuts on desktop or start-menu or other folders, you must pay attention to the "Target' and "start" field. Even if you have to navigate manually (by opening my computer, select c:, etc...). This clue tells 2 things: the proper Path, and the Appl. name with a colorful icon (if it has one). Correct the path to both fields solves common pointer (shortcut), then click "change icons" and navigate to that folder (cllick Browse...) and select the Appl. name (*.exe) and that becomes your icon (or you can navigate the folders, seeking other icon images or an image folder may contain something to your liking).

thanks for the tips!
My System SpecsSystem Spec
17 Feb 2013   #155

64-bit Windows 10 Pro

Glad it could help Suny, and welcome to Seven Forums.
My System SpecsSystem Spec
20 Mar 2013   #156


Oh Shawn, you made something awesome man, that BAT solved my problem instantly! I have been suffering with corrupt icons in Windows 7 for years, I usually waited for them to repair themselves, but you made it!!
My System SpecsSystem Spec
20 Mar 2013   #157

64-bit Windows 10 Pro

Hello Nilanko,

I'm happy to hear it was able to help.
My System SpecsSystem Spec
20 Mar 2013   #158

Windows7 x64

Both Methods 1 and 2 solve this problem, albeit temporarily, for my system. However, every time I install a new application/program, the icon cache needs to be reset. Is this going to be the norm for as long as I have this system?
I just bought three identically spec'd laptops and this is the only one with this issue.
My System SpecsSystem Spec
20 Mar 2013   #159

64-bit Windows 10 Pro

Hello Max, and welcome to Seven Forums.

Sounds like you may have some corruption.

As a test, see if increasing the size of the icon cache may be able to help.

Icon Cache Size - Change in Windows

Hope this helps,
My System SpecsSystem Spec

 Icon Cache - Rebuild

Thread Tools

Similar help and support threads
Thread Forum
How to rebuild system icon ?
Hello :) First sorry for my bad english :( I hope That will it be understandable. So, i got a problem with icon in my documents in Windows 7 Home Premium It looks like normal directory, not like windows desktop. Any chance for recovering this icon or something? Thanks for help
how to rebuild the cache for iconcache.db and readthe error log
Recently firefox icon is not being displayed with the .htm files and as per the instruction i tried to rebuild the cache but the iconcache.db is not present so how to rebuild or get back the same and there are several errors in the windows also and in the registry please some one send the name of...
Performance & Maintenance
Automatically rebuild icon cache problem?
Originally had this problem a while back ( icon for Spywareblaster file application and for taskbar pinned shortcut, but it was solved. Now for some strange reason, Spywareblaster's icon has...
General Discussion
Foobar icon cache
My right click menu for foobar is missing icons in the tasks section. I've tried uninstalling/reinstalling foobar and rebuilding icon cache, neither have worked.
General Discussion
Icon Cache Issues
On my previous installation of Windows 7, I frequently got a corrupt icon cache. The shortcut icon which I had removed from the icons would get replaced by a black box. Clearing the cache would fix it but eventually it'd happen again. Now, on b7600, I'm having a similar issue. For some...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:38.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App