首页 > 技术文章 > 修复桌面图标

scai 2021-11-14 15:53 原文

把以下代码复制到记事本,保存为bat,然后运行

cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer
taskkill /f /im explorer.exe
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 iconcache_*.db /f
del thumbcache下划线星号.db /f
start explorer
pause

推荐阅读