Test.bat
/////////////////////////////////////////////////////////////////////////
REM Close Windows Shell Explorer
taskkill/f/im Explorer.exe
REM Cleanup System icon Cache database
Attrib-h-s-r "%userprofile%\appdata\local\iconcache.db"
del/f "%userprofile%\appdata\local\iconcache.db"
attrib/s/d-h-s-r "%userprofile%\appdata\local\microsoft\windows\explorer\*"
del/f "%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_32.db"
del/f "%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_96.db"
del/f "%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_102.db"
del/f "%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_256.db"
del/f "%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_1024.db"
del/f "%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_idx.db"
del/f "%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_sr.db"
REM Cleaning system Tray memory icon
echo y|reg Delete "hkey_classes_root\local settings\software\microsoft\windows\currentversion\traynotify"/V IconStreams
echo y|reg Delete "hkey_classes_root\local settings\software\microsoft\windows\currentversion\traynotify"/V PastIconsStream
rem Restart Windows Shell Explorer
Start explorer
Win7 shortcut icon fix