When you use Windows, you often encounter a program icon display exception, restart can not be resolved; in fact, this is the icon cache error, due to a number of unexpected errors may cause the cache process error, cache file corruption and other circumstances cause this icon to show an exception. In fact, the solution is very simple, clean up the icon cache, a script can solve the problem, and immediately, very easy to use.
This script is also I found from the Internet, the author who has not been tested, in short, share it out:
The
code is as follows:
rem shutdown Windows shell explorer</p> <p>taskkill/f/im explorer.exe</p> <p>rem Cleanup System icon Cache database </ p> <p>attrib-h-s-r "%userprofile%appdatalocaliconcache.db" </p> <p>del/f "%userprofile%" Appdatalocaliconcache.db "</p> <p>attrib/s/d-h-s-r"%userprofile%appdatalocalmicrosoftwindowsexplorer * "</p> <p>del/f"%userprofile%appdatalocalmicrosoftwindowsexplorerthumbcache_32.db "
del/f "%userprofile%appdatalocalmicrosoftwindowsexplorerthumbcache_96.db"
del/f "%userprofile%appdatalocalmicrosoftwindowsexplorerthumbcache_102.db"
del/f "%userprofile%appdatalocalmicrosoftwindowsexplorerthumbcache_256.db"
del/f "%userprofile%appdatalocalmicrosoftwindowsexplorerthumbcache_1024.db"
del/f "%userprofile%appdatalocalmicrosoftwindowsexplorerthumbcache_idx.db"
del/f "%userprofile%appdatalocalmicrosoftwindowsexplorerthumbcache_sr.db" </p> <p>rem Restart Windows Shell explorer</p> <p>start Explorer
Create a new Clean_icon_cache.bat batch file, right-click on the edit, and then copy and save the above content, then double-click to execute.
Incidentally comes a script to clean up the history of the tray icon in the lower right corner:
The
code is as follows:
rem shutdown Windows shell explorer</p> <p>taskkill/f/im explorer.exe</p> <p>rem Clean system tray memory icon </ p> <p>echo y|reg Delete "hkey_classes_rootlocal settingssoftwaremicrosoftwindowscurrentversiontraynotify"/ V IconStreams
echo y|reg Delete "hkey_classes_rootlocal settingssoftwaremicrosoftwindowscurrentversiontraynotify"/V pasticonsstream</p> <p>rem Restart Windows shell explorer</p> <p>start Explorer