We saw how to clear the icon cache and let Windows rebuild it, in post Completely Clearing and Rebuilding the Icon Cache Database which applies to all versions of Windows including Windows 10.
Here is a quicker way to just refresh the icon cache, using a neat little command-line, which works in Windows 7, 8 and 10.
Refreshing the Icon Cache Quickly
Press WinKey + R to bring up the Run dialog. Then, run the following command and hit ENTER.
In Windows 10, run this command instead:
Here is a small video clip to demonstrate this.
Incorrect icon shown for .txt file, fixed immediately after running the above command.
Note: If you’re looking for information on how to completely Clear and Rebuild the icon cache, check out this post How to Rebuild the Icon Cache in Windows Vista, 7, 8 and Windows 10.