[Plain]
REM Shutdown Windows Shell Explorer
taskkill/f/im Explorer.exe
REM Cleanup System icon Cache database
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 Cleaning system Tray memory icon
Echo y reg delete "hkey_classes_rootlocal settingssoftwaremicrosoftwindowscurrentversiontraynotify"/V IconStreams
Echo y reg delete "hkey_classes_rootlocal settingssoftwaremicrosoftwindowscurrentversiontraynotify"/V PastIconsStream
rem Restart Windows Shell Explorer
Start explorer
Paste the above code into Notepad and save it as "Xxxx.bat" and run with administrator privileges.