:: 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