Skip to content

Commit 2a79be0

Browse files
authored
Update ClearWindowsIconCache.cmd
1 parent 984ea0d commit 2a79be0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ClearWindowsIconCache.cmd

+4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
rem 执行后你可能需要把固定在任务栏上的图标取消固定,关闭程序再打开后才会看到效果,重建图标缓存需要一些时间,耐心等待
2+
rem You may need to unpin icons from the taskbar, close the program and reopen it to make it show properly. Rebuilding icon cache will take some time, wait patiently.
23
rem 强制杀死 Windows 资源管理器
4+
rem Force Kill Windows Explorer
35
taskkill /f /im explorer.exe
46
rem 清理系统图标缓存数据库
7+
rem Clear system icon cache database
58
attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"
69
del /f "%userprofile%\AppData\Local\IconCache.db"
710
attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"
@@ -16,4 +19,5 @@ rem 清理 系统托盘记忆的图标
1619
echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams
1720
echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream
1821
rem 启动 Windows 资源管理器
22+
rem start Windows explorer
1923
start explorer

0 commit comments

Comments
 (0)