mirror of
https://github.com/Apologieze/Benri.git
synced 2026-01-18 17:17:21 +01:00
39 lines
960 B
Batchfile
39 lines
960 B
Batchfile
:: Created by: Shawn Brink
|
|
:: Created on: April 27, 2015
|
|
:: Updated on January 25, 2024
|
|
:: Tutorial: https://www.tenforums.com/tutorials/5645-rebuild-icon-cache-windows-10-a.html
|
|
|
|
|
|
@echo off
|
|
set iconcache=%localappdata%\IconCache.db
|
|
set iconcache_x=%localappdata%\Microsoft\Windows\Explorer\iconcache*
|
|
|
|
echo.
|
|
echo The explorer process must be temporarily killed before deleting the IconCache.db file.
|
|
echo.
|
|
echo Please SAVE ALL OPEN WORK before continuing.
|
|
echo.
|
|
pause
|
|
echo.
|
|
If exist "%iconcache%" goto delete
|
|
echo.
|
|
echo The %localappdata%\IconCache.db file has already been deleted.
|
|
echo.
|
|
If exist "%iconcache_x%" goto delete
|
|
echo.
|
|
echo The %localappdata%\Microsoft\Windows\Explorer\IconCache_*.db files have already been deleted.
|
|
echo.
|
|
exit /B
|
|
|
|
|
|
:delete
|
|
echo.
|
|
echo Attempting to delete IconCache.db files...
|
|
echo.
|
|
ie4uinit.exe -show
|
|
taskkill /IM explorer.exe /F
|
|
timeout /t 2 >nul
|
|
del /A /F /Q "%iconcache%"
|
|
del /A /F /Q "%iconcache_x%"
|
|
start explorer.exe
|