[plain]
rem 關閉Windows外殼程序explorer
taskkill /f /im explorer.exe
rem 清理系統圖標緩存數據庫
attrib -h -s -r "%userprofile%AppDataLocalIconCache.db"
del /f "%userprofile%AppDataLocalIconCache.db"
attrib /s /d -h -s -r "%userprofile%AppDataLocalMicrosoftWindowsExplorer*"
del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_32.db"
del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_96.db"
del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_102.db"
del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_256.db"
del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_1024.db"
del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_idx.db"
del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_sr.db"
rem 清理 系統托盤記憶的圖標
echo yreg delete "HKEY_CLASSES_ROOTLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v IconStreams
echo yreg delete "HKEY_CLASSES_ROOTLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v PastIconsStream
rem 重啟Windows外殼程序explorer
start explorer
將以上代碼粘貼到記事本,然後保存為“XXXX.bat”,用管理員權限運行即可。