Created
September 24, 2015 09:14
-
-
Save thiphariel/76f9b9c911029940f870 to your computer and use it in GitHub Desktop.
Rebuild icon cache on Windows 7/8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set iconcache=%localappdata%\IconCache.db | |
| echo The Explorer process must be killed to delete the Icon DB. | |
| echo. | |
| echo Please SAVE ALL OPEN WORK before continuing. | |
| echo. | |
| pause | |
| echo. | |
| If exist "%iconcache%" goto delID | |
| echo. | |
| echo Icon DB has already been deleted. | |
| echo. | |
| pause | |
| exit /B | |
| :delID | |
| echo Attempting to delete Icon DB... | |
| echo. | |
| ie4uinit.exe -ClearIconCache | |
| taskkill /IM explorer.exe /F | |
| del "%iconcache%" /A | |
| echo. | |
| echo Icon DB has been successfully deleted. Please "restart your PC" now to rebuild your icon cache. | |
| echo. | |
| start explorer.exe | |
| pause | |
| exit /B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment