Skip to content

Instantly share code, notes, and snippets.

@OneNiNE87
Created January 13, 2025 21:22
Show Gist options
  • Save OneNiNE87/f84afd0f3aacea03a25c2dc5d4cc76c4 to your computer and use it in GitHub Desktop.
Save OneNiNE87/f84afd0f3aacea03a25c2dc5d4cc76c4 to your computer and use it in GitHub Desktop.
A not so basic 2x script to reset the icon cache in Window10/11 πŸ˜πŸ‘πŸ™Œβ„’οΈ
REM reseticoncache.bat
REM A basic script to reset the icon cache in Windows 10/11
taskkill /im explorer.exe /f
cd /d %userprofile%\appdata\local
attrib -h -r -s iconcache.db
attrib -h -r -s iconcache*
del iconcache.db /q
del iconcache*
start %windir%\explorer.exe
echo.
echo Select an option:
echo 1. Restart
echo 2. Shut down
echo 3. Exit
set /p choice="Enter your choice (1, 2, or 3): "
if "%choice%"=="1" shutdown -r -t 0
if "%choice%"=="2" shutdown -s -t 0
if "%choice%"=="3" exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment