Win7/Win10右下角图标空白,声音小喇叭点不动的问题,清理图标缓存通用批处理。

很多时候网吧客户机启动电脑后发现任务栏右下角的图标显示为空白,而且点击音量小喇叭也没反应(表现为占用了图标位置,却不能显示出来,也点击不了)。

开始还以为开超级后会恢复正常,但很多时候开超级以后问题依旧。

tubiaohuancunqingli0301

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

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_16.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_48.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_768.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1280.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1920.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_2560.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_custom_stream.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_exif.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_wide.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_wide_alternate.db"

del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_16.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_32.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_48.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_96.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_256.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_768.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_1280.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_1920.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_2560.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_custom_stream.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_exif.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_idx.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_sr.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_wide.db"
del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_wide_alternate.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

如果你不会制作批处理,也可以直接下载: