1: rem close Windows explorer
2:
3: taskkill /f /im explorer.exe
4:
5: rem Rebuild Icon Cache
6:
7: attrib -h -s -r "%userprofile%AppDataLocalIconCache.db"
8:
9: del /f "%userprofile%AppDataLocalIconCache.db"
10:
11: attrib /s /d -h -s -r "%userprofile%AppDataLocalMicrosoftWindowsExplorer*"
12:
13: del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_32.db"
14: del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_96.db"
15: del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_102.db"
16: del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_256.db"
17: del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_1024.db"
18: del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_idx.db"
19: del /f "%userprofile%AppDataLocalMicrosoftWindowsExplorerthumbcache_sr.db"
20:
21: rem remove system try icon
22:
23: echo y|reg delete "HKEY_CLASSES_ROOTLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v IconStreams
24: echo y|reg delete "HKEY_CLASSES_ROOTLocal SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify" /v PastIconsStream
25:
26: rem restart Windows explorer
27:
28: start explorer