[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 y|reg delete "HKEY_CLASSES_ROOTLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v IconStreams
echo y|reg delete "HKEY_CLASSES_ROOTLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v PastIconsStream
rem 重啟Windows外殼程式explorer
start explorer
將以上程式碼貼上到記事本,然後儲存為“XXXX.bat”,用管理員許可權執行即可。