Knowledge Point Analysis:
Sometimes the icon display is not normal because the icon cache file corruption, we have to do is to create a new icon cache file.
Win7 operating System icon caching is not only stored in the "%userprofile%/appdata/local/iconcache.db" file (where "%USERPROFILE%" is the system's environment variable, indicating your user folders, the system can be directly identified) It is also stored in several "thumbcache_*.db" files under the "%userprofile%/appdata/local/microsoft/windows/explorer/" folder, so delete these files directly, Then restart the Explorer process to clean up the icon cache (the system may be prompted not to delete, not enough permissions, etc., then get the file permissions, and then one by one delete)
Operation steps:
Win7 operating system, delete this icon cache file, and then restart the system will be automatically new.
Path: c:/users/User name/appdata/local/iconcache.db
You can also use the following batch file
Does not include this row ********************************
REM Shutdown Windows Shell Explorer
taskkill/f/im Explorer.exe
REM Cleanup System icon Cache database
Attrib-h-s-r "%userprofile%/appdata/local/iconcache.db"
del/f "%userprofile%/appdata/local/iconcache.db"
attrib/s/d-h-s-r "%userprofile%/appdata/local/microsoft/windows/explorer/*"
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"
REM Cleaning system Tray memory icon
echo y|reg Delete "hkey_classes_root/local settings/software/microsoft/windows/currentversion/traynotify"/V IconStreams
echo y|reg Delete "hkey_classes_root/local settings/software/microsoft/windows/currentversion/traynotify"/V PastIconsStream
rem Restart Windows Shell Explorer
Does not include this row ********************************
XP operating system, delete this icon cache file, and then restart the system will be automatically new.
Path: C:/Documents and settings/username/local settings/application data/iconcache.db