Windows icon Display Error resolution (cleanup icon cache bat script)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.