Guest User

Untitled

a guest
Jan 18th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. @echo off
  2. set iconcache=%localappdata%IconCache.db
  3.  
  4. echo The Explorer process must be killed to delete the Icon DB.
  5. echo.
  6. echo Please SAVE ALL OPEN WORK before continuing.
  7. echo.
  8. pause
  9. echo.
  10. If exist "%iconcache%" goto delID
  11. echo.
  12. echo Icon DB has already been deleted.
  13. echo.
  14. pause
  15. exit /B
  16.  
  17. :delID
  18. echo Attempting to delete Icon DB...
  19. echo.
  20. ie4uinit.exe -ClearIconCache
  21. taskkill /IM explorer.exe /F
  22. del "%iconcache%" /A
  23. del "%localappdata%MicrosoftWindowsExplorericoncache*" /A
  24. echo.
  25. echo Icon DB has been successfully deleted. Please "restart your PC" now to rebuild your icon cache.
  26. echo.
  27. start explorer.exe
  28. pause
  29. exit /B
  30.  
  31. timeout/t 5 > nul:
Add Comment
Please, Sign In to add comment