A simple batch script to clear the Windows icon cache and restart Windows Explorer, providing a fresh start for your desktop icons.
Icon Cache Refresher is a batch script that helps fix issues with incorrect or corrupted desktop icons by clearing the Windows icon cache and restarting Windows Explorer.
This utility helps solve issues such as:
- Smaller icons that get a faint white frame
- Corrupted or incorrect icons
- Missing desktop icons
It is designed to help users clear the Windows icon cache in order to solve these common icon display issues. The script requests elevated permissions, clears the icon cache using the built-in Windows command ie4uinit.exe
, and restarts Windows Explorer to apply the changes.
The tool is useful for anyone experiencing issues like missing or incorrect icons on their Windows system, as it offers a simple, one-click solution to refresh the icon cache.
- Automatically requests administrator privileges.
- Clears the Windows icon cache using
ie4uinit.exe
. - Restarts Windows Explorer to apply changes immediately.
- Provides user confirmation before proceeding.
- Includes error handling for each step, ensuring reliability.
- Download the repository or clone it using:
git clone https://github.com/ClearanceClarence/Icon-Cache-Refresher.git
- Navigate to the folder containing the batch script.
- Right-click on
refresh_icon_cache.bat
and select Run as administrator. - Follow the prompts to clear the icon cache and refresh your icons.
This script performs the following actions:
- Checks if the script is running with administrator privileges. If not, it prompts the user for elevation.
- Asks the user for confirmation before proceeding to clear the icon cache.
- Uses
ie4uinit.exe
to clear the icon cache. - Stops and then restarts Windows Explorer to ensure that changes take effect.
- Windows operating system (Windows 7 and above).
- Administrative privileges are required to clear the icon cache.
Feel free to open issues or submit pull requests if you have any suggestions for improvements or additional features.
This project is licensed under the MIT License.