- #include <MsgBoxConstants.au3>
- MsgBox(64+4096+262144, "提示", "清理图标缓存需要重启资源管理器生效")
- ProcessClose("explorer.exe")
- FileSetAttrib(@UserProfileDir & "\AppData\Local\IconCache.db", "-H-S-R", 0)
- FileDelete(@UserProfileDir & "\AppData\Local\IconCache.db")
- FileSetAttrib(@UserProfileDir & "\AppData\Local\Microsoft\Windows\Explorer\*.db", "-H-S-R", 0)
- FileDelete(@UserProfileDir & "\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db")
- If @OSArch = "X86" Then
- RegDelete("HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify", "IconStreams")
- RegDelete("HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify", "PastIconsStream")
- Else
- RegDelete("HKEY_CLASSES_ROOT64\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify", "IconStreams")
- RegDelete("HKEY_CLASSES_ROOT64\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify", "PastIconsStream")
- EndIf
- Run(@WindowsDir & "explorer.exe", "")
- #include <Process.au3>
- Local $iRc = _RunDos("ie4uinit -show")
复制代码 最后一条在重启资源管理器后,不会执行,刷新不了图标资源,求大神指教 |