Is there a script out there that rebuilds the icon cache?

Page 2 of 2 FirstFirst 12

  1. Posts : 1
    win 10
       #11

    Code:
    @echo off
    echo Created by: Guile
    echo Created on: February 3, 2023
    echo Attempting to Rebuild All Icons
    ie4uinit.exe -show
    taskkill /IM explorer.exe /F
    DEL /A /Q "%localappdata%\IconCache.db"
    DEL /A /F /Q "%localappdata%\Microsoft\Windows\Explorer\iconcache*"
    cls
    echo Created by: Guile
    echo Created on: February 3, 2023
    echo Icon cache deleted Rebuilding all icons.
    echo You will need to restart the PC to finish rebuilding your icon cache.
    echo Or just go back, Explorer will restart
    echo.
    CHOICE /C:YN /M "Do you want to restart the PC now?"
    IF ERRORLEVEL 2 goto no
    IF ERRORLEVEL 1 goto yes
    :yes
    shutdown /r /f /t 00
    :no
    explorer
    exit /B
    copy to notepad save as batch file
    rebuildicons.bat, right click run as administrator.

    100% works Win 10
      My Computer


  2. Posts : 751
    Windows 10/11
       #12

    There's an updated script on elevenforum.com:
    Rebuild Icon Cache in Windows 11 Tutorial | Windows 11 Forum

    The main difference is the addition of a 2 second wait between killing Explorer and deleting the icon cache files. I did a lot of testing and determined that the delay is often needed on both Windows 10 and Windows 11. The restart of the PC is not necessary.

    @Brink I recommend replacing the script on tenforums with the elevenforum version.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:38.
Find Us




Windows 10 Forums