windows 10 IconCache.db file code example

Example: windows 10 IconCache.db file

Add an application to the desktop:
1. Press windows key + R
2. Type 'Explorer.exe Shell:AppsFolder' and press ok.
3. Drag the app onto the desktop and a shortcut will be made.


How to delete the IconCache.db file to recover shortcut icon:
1. Go to windows search and type '%appdata%' then open the file path.
2. In the top menu bar, click 'View' then check the the 'Hidden items' box.
3. Find the IconCache.db file and delete it.
4. Open Task Manager, right click on Windows Explorer and click Restart.
5. Wait a few seconds and then the shortcut icon should appear.


Reset the icon cache database on Windows 10:
   Close any applications that may running.
1. Open Start and do a search for Command Prompt.
2. Right-click the result and select Run as administrator.
3. Type the following command to navigate to the icon cache database 
   location and press Enter:  
      cd %homepath%\AppData\Local\Microsoft\Windows\Explorer

4. 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 should list these database files:

   iconcache_1280.db
   iconcache_16.db
   iconcache_1920.db
   iconcache_256.db
   iconcache_2560.db
   iconcache_32.db
   iconcache_48.db
   iconcache_768.db
   iconcache_96.db
   iconcache_custom_stream.db
   iconcache_exif.db
   iconcache_idx.db
   iconcache_sr.db
   iconcache_wide.db
   iconcache_wide_alternate.db
   
5. Type the following command to stop File Explorer and press Enter:
      taskkill /f /im explorer.exe
   
6. Type the following command to delete the iconcache files and press Enter:
      del iconcache*

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

8. Type the following command to start File Explorer and press Enter:
      explorer.exe
    
9. Close Command Prompt to complete the task.

How to Rebuild the Icon Cache:
https://www.howtogeek.com/232779/how-to-rebuild-a-broken-icon-cache-in-windows-10/#:~:text=To%20rebuild%20the%20icon%20cache%2C%20you%20have%20to%20delete%20all,t%20just%20delete%20them%20normally.

Tags:

Php Example