Solve the Win7 EXE file icon illegal display method

Source: Internet
Author: User

method One, save the following command as a batch file,

For example: Icorestore.bat

The code is as follows Copy Code
Taskkill/im explorer.exe/f
CD/D%userprofile%\appdata\local
Del iconcache.db/a
Start Explorer.exe
Exit


Double-click to run it and the icon will automatically recover

Attention:

The runtime will cause the desktop to disappear, do not worry, will soon be restored ...

method Two,1, enter HKEY_LOCAL_MACHINE\Software\Classes\Exefile\Shell\Open\Command, change the key value of the right default entry to: "%1"%*

2, run CMD, enter the following two commands:
Ftype exefile= "%1"%*
Assoc. exe=exefile

3, then enter the for%%i in (%windir%\system32\*.dll) does regsvr32.exe/s%%i
in cmd to also put C:\windows\system32\ on the clean machine SHELL32.dll to your machine before you run this; (You create a shortcut to a text file on your desktop, and then change the icon to see if you can display the SHELL32.dll correctly, and if you display it correctly, you don't have to copy it)
Note: It's very similar to a friend who replied, But the correct parameter is "I", not "1";

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.