清理Windows图标缓存


  1. 新建txt文件
  2. 输入以下代码

rem 关闭 Windows 外壳程序 Explorer

taskkill /f /im explorer.exe

rem 清理系统图标缓存数据库

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 清理系统托盘记忆的图标

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

 
 

  1. 更改后缀为.bat后以管理员权限运行此bat文件

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/288826.html

(0)
上一篇 2022年9月11日
下一篇 2022年9月11日

相关推荐

发表回复

登录后才能评论