You’re aware of the various ways to clear and rebuild the icon cache in Windows, such as Completely Rebuilding the iconcache.db (in Windows Vista, 7, 8 and 10), using TweakUI (in Windows XP) and using Default Programs. Here is a quicker way to refresh the icon cache, using a neat little command-line, which works in Windows 7 and 8.
Editor’s note: This command-line might work in Windows Vista SP2 / Server 2008 SP2 as well if you install Internet Explorer 9, although I haven’t tried it. I decided to leave the work to our readers :)
Refreshing the Icon Cache Quickly
Press WinKey + R to bring up the Run dialog. Then, run the following command and hit ENTER.
Here is a small video clip to demonstrate this.
Incorrect icon shown for .txt file, fixed immediately after running the above command.