-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Notebooks
- Notebook Software and How To Questions
- Can't rebuild icon cache

Create an account on the HP Community to personalize your profile and ask a question
11-16-2019 02:31 AM
Hello i have recently reset my computer and i have been unable to clear my icon cache. I have tried running the
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer
attrib –h
thumbcache_*.db
del thumbcache_*.db
start explorer
command in command prompt but it always says "'thumbcache_*.db' is not recognized as an internal or external command,
operable program or batch file." What is there that i can do? thanks in advance
11-16-2019 02:35 AM - edited 11-16-2019 02:38 AM
Also, if i access explorer, kill the explorer task and then use the command "del iconcache*" it says access denied and when i close all the background processes it just says "Could Not Find C:\Users\alber\AppData\Local\IconCache*.db"
11-18-2019 02:17 PM
@albertus50, Welcome to the HP Support Community!\
Make sure you are the administrator to make these changes.
Let us follow these steps to rebuild the icon cache database:
- Open Start and do a search for Command Prompt.
- Right-click the result and select Run as administrator.
-
Type the following command to navigate to the icon cache database location and press Enter:
cd %homepath%\AppData\Local\Microsoft\Windows\Explorer
-
Type the following command to verify the icon cache database files are at the location and press Enter:
dir iconcache*
-
The output of the dir command will list the database files.
-
Type the following command to stop File Explorer and press Enter:
taskkill /f /im explorer.exe
Important: Once you terminate File Explorer, your desktop background and taskbar will disappear, leaving a black screen — but it's OK, it's only temporarily. You need to close File Explorer to be able to delete the icon cache files. Otherwise, you won't be able to do it.
-
Type the following command to delete the iconcache files and press Enter:
del iconcache*
-
Type the following command to verify that you successfully deleted the icon cache files and press Enter:
dir iconcache*
If you still see some iconcache files, then it's likely that some apps are still running, which will prevent you from deleting the database files. Make sure to close them all, and repeat the steps.
-
Type the following command to start File Explorer and press Enter:
explorer.exe
-
Close Command Prompt to complete the task.
Let me know how this goes.
If you feel my post solved your issue, please click “Accept as Solution”, it will help others find the solution. Click the “Kudos/Thumbs Up" on the bottom right to say “Thanks” for helping!
KUMAR0307
I am an HP Employee
11-18-2019 03:13 PM
Hello kumar thank you very much for your answer, unfortunately i will not be able to test it out as my computer had a hardware problem this morning and i had to send jt to repair. I will, however, try this when i get it back. Thank you!
11-19-2019 11:22 AM
Sure, feel free to contact us with any concerns related to HP products.
Happy to help!
KUMAR0307
I am an HP Employee