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";