[系统] Win7/Win10桌面右下角空白,输入法旁边附近空白点不动清理图标缓存的批处理

[复制链接]
查看488 | 回复0 | 2019-5-4 22:41:31 | 显示全部楼层 |阅读模式
很多时候启动电脑后发现任务栏右下角的图标显示为空白,而且点击音量小喇叭也没反应(表现为占用了图标位置,却不能显示出来,也点击不了)。
开始还以为开超级后会恢复正常,但很多时候开超级以后问题依旧。
Win7/Win10桌面右下角空白,输入法旁边附近空白点不动清理图标缓存的批处理-1.png

将一下代码保存为批处理,双击运行即可清理图标缓存,此批处理经过小斑马修改,完善了 Win10 一些环境清理图标缓存不生效的情况。

  1. <font face="微软雅黑" size="4">rem 关闭Windows外壳程序explorer
  2. taskkill /f /im explorer.exe

  3. rem 清理系统图标缓存数据库
  4. attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"
  5. del /f "%userprofile%\AppData\Local\IconCache.db"
  6. attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"
  7. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_16.db"
  8. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db"
  9. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_48.db"
  10. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db"
  11. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db"
  12. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_768.db"
  13. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1280.db"
  14. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1920.db"
  15. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_2560.db"
  16. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_custom_stream.db"
  17. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_exif.db"
  18. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"
  19. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
  20. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_wide.db"
  21. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_wide_alternate.db"

  22. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_16.db"
  23. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_32.db"
  24. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_48.db"
  25. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_96.db"
  26. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_256.db"
  27. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_768.db"
  28. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_1280.db"
  29. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_1920.db"
  30. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_2560.db"
  31. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_custom_stream.db"
  32. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_exif.db"
  33. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_idx.db"
  34. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_sr.db"
  35. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_wide.db"
  36. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_wide_alternate.db"

  37. rem 清理系统托盘记忆的图标
  38. echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams
  39. echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream

  40. rem 重启 Windows 外壳程序 explorer
  41. start explorer</font>
复制代码



要善于套用别人的成功模式,别人的成功模式可成为一种指引,让你有方向可循。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则