Windows icon cache refresh system

 

 

rem shut down Windows Shell Explorer 
taskkill / f / IM explorer.exe 
rem to clean up the system icon cache database 
attrib -h -r -s " % USERPROFILE% \ AppData \ Local \ IconCache.db " 
del / f " % USERPROFILE% \ AppData \ Local \ IconCache.db " 
attrib / S / d -s -h -r " % USERPROFILE% \ AppData \ Local \ in the Microsoft \ Windows \ Explorer \ * " 
del / f " % USERPROFILE% \ AppData \ Local \ in the Microsoft \ Windows \ Explorer \ thumbcache_32.db " 
del / f " % USERPROFILE% \ AppData \ Local \ in the 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 清理 系统托盘记忆的图标
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 重启Windows外壳程序explorer
start explorer

 

Guess you like

Origin www.cnblogs.com/nanqiang/p/11023312.html