Windows icon shows error solution (clean up icon cache BAT script)

  

When using Windows, the program icon is often displayed abnormally, and the restart cannot be solved; in fact, this is an error in the icon cache, due to some unexpected errors. This icon may display an exception due to a cache process error, cache file corruption, and so on. In fact, it is very simple to solve, clean up the icon cache, a script can solve the problem, and it is very easy to use.

This script is also found on the Internet. Who is the author who can't test it? Let's share it:
Copy the code
The code is as follows: rem Close the Windows shell explorer</p> ;<p>taskkill /f /im explorer.exe</p><p>rem Clean System Icon Cache Database</p><p>attrib -h -s -r "%userprofile%\\AppData\\ Local\\IconCache.db"</p><p>del /f "%userprofile%\\AppData\\Local\\IconCache.db"</p><p>attrib /s /d -h -s - r "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\Explorer\\*"</p><p>del /f "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\Explorer\\thumbcache_32.db"del /f "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\Explorer\\thumbcache_96.db"del /f "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\Explorer\\thumbcache_102.db"del /f "%userprofile% \\AppData\\Local\\Microsoft\\Windows\\Explorer\\thumbcache_256.db"del /f "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\Explorer\\thumbcache_1024.db"del /f "%userprofile%\\AppData\\Local\\Microsoft \\Windows\\ Explorer\\thumbcache_idx.db"del /f "%userprofile%\\AppData\\Local\\Microsoft\\Windows\\Explorer\\thumbcache_sr.db"</p><p>rem Restart Windows shell explorer</p><p> ;start explorer

Create a clean_icon_cache.bat batch file, right click and click Edit, then copy the above into the file and save it, then double-click to execute.

Supplied with a script to clean up the history of the tray icon in the lower right corner:
Copy the code
The code is as follows: rem Close the Windows shell explorer</p><p>taskkill /f /Im explorer.exe</p><p>rem Clean up the system tray memory icon</p><p>echo y| Reg delete "HKEY_CLASSES_ROOT\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\TrayNotify" /v IconStreamsecho y| Reg delete "HKEY_CLASSES_ROOT\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\TrayNotify" /v PastIconsStream</p><p>rem Restart the Windows shell explorer</p><p>start explorer

Copyright © Windows knowledge All Rights Reserved