Windows 8 and 8.1 Forums


Can anyone interpret this for me?(Command Prompt commands)

  1. #1


    Posts : 50
    Windows 8

    Can anyone interpret this for me?(Command Prompt commands)


    I am posting these commands again. It is "buried" in another thread. I'm just looking for an explanation of this and thought viewers may not see it. It is one MVP's "check" before going to another step after I explained my current progress.
    -------

    Before you do a reset (which will no doubt fix things), try deleting this file and rebooting.

    %UserProfile%\AppData\Local\IconCache.db

    You need to remove the desktop (explorer.exe) in order to delete the file. You can do it this way at an Administrator Command Prompt (WinidowsKey + X). Be careful to get the spaces correct.

    taskkill /F /IM explorer.exe
    cd /d %userprofile%\AppData\Local
    attrib -h IconCache.db
    del IconCache.db
    start explorer
    ------------------
    I think I get the general thought, but can anyone explain its purpose precisely? Safe to do?

    Thanks.

      My System SpecsSystem Spec

  2. #2


    Posts : 22,577
    64-bit Windows 10


    Hello CP,

    That will basically rebuild the icon cache.


    Specifically, it does this in this order:

    1. Kills explorer process.
    2. Opens the %userprofile%\AppData\Local directory in the command prompt for step 3 and 4 below.
    3. Sets the attribute for the IconCache.db file to not be a hidden file. (this is not recommended)
    4. Delete the IconCache.db file
    5. Starts explorer process


    As in the tutorial above, you will need to restart the PC to rebuild the icon cache. Rebuilding the icon cache is perfectly safe to do, but I would recommend using the method in the tutorial above instead.


    Hope this helps,
    Shawn
      My System SpecsSystem Spec

  3. #3


    Posts : 50
    Windows 8


    Thanks. I will refer to your article as I proceed through my current mess, if I even try it before a reset. A few suggestions I've found here and there are now related to "icons" as a "potential" culprit.
      My System SpecsSystem Spec

  4. #4


    Posts : 22,577
    64-bit Windows 10


    Rebuilding the icon cache is not going to help with your Control Panel being empty though.
      My System SpecsSystem Spec

  5. #5


    Posts : 454
    Windows 8.1 Pro with Media Center


    I've never cared for that solution, in particular the killing Explorer and restarting parts; you lose changes to desktop icon positions when you kill, and when you restart, some of the notification icons may not come back. For a number of reasons, I always create a separate "admin" account when I install Windows. On its desktop, I place a shortcut to my personal account's AppData folder. When Windows screws up the icons, I log out of my account, log into admin, open AppData/Local, then delete iconcache.db. Then I log out of admin and back into my account, and the icons are fixed. No killing Explorer or rebooting necessary, and no bad side effects.
      My System SpecsSystem Spec

  6. #6


    Posts : 50
    Windows 8


    Quote Originally Posted by Brink View Post
    Rebuilding the icon cache is not going to help with your Control Panel being empty though.
    Then I'll have to find and demote that MVP on the Toshiba (brand I'm using) forums. Not to go beyond the topic of this thread, but the only "solved" in multiple forums related to my issue was from a member on Sevenforums claiming the cause was a corrupted icon...I'm trying to put 2 and 2 together here, but getting 5.
      My System SpecsSystem Spec

  7. #7


    Posts : 480
    Windows 8 Pro x64


    There's an easier way to rebuild the icon cache:
    Code:
    ie4uinit.exe -ClearIconCache
    Probably, covered somewhere in tutorials here

    It was a side note, because I don't see the actual problem description, which is always a good start
      My System SpecsSystem Spec

  8. #8


    Quote Originally Posted by Vadikan View Post
    There's an easier way to rebuild the icon cache:
    Code:
    ie4uinit.exe -ClearIconCache
    Probably, covered somewhere in tutorials here

    It was a side note, because I don't see the actual problem description, which is always a good start
    Much easier !

      My System SpecsSystem Spec

  9. #9


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    CP - You can do it like that, or you can use the Windows 8 Manager program by Yamicsoft I suggested. In that program, you can increase the size of your Icon Cache, which is what I think you need to do. This is because the problem starts after Win 8 has been running for a little while, so either the icon cache is set too small (below default) or, you have an Icon on your desktop which is corrupt. You can deal with Both issues from the Program.
      My System SpecsSystem Spec

Can anyone interpret this for me?(Command Prompt commands)
Related Threads
Hi, I need to execute the command prompt as admin. When I try to do it the command prompt window doesn't open and there are no errors. If I run the command prompt without admin privs it works, but I then can't do what I need to do in the admin window. Can someone help me to understand why this...
Command prompt flashed once in General Support
Hello, While typing up an assignment, I just barely noticed that command prompt opened and then closed for a fraction of a second. I am extremely cautious with the files I download, and instantly performed a scan with malwarebytes. It detected nothing, so I performed a second scan with...
no log in password to use for 'command prompt' in User Accounts and Family Safety
all of a sudden my HP 9200 notebook w/windows 8 went into an 'automatic repair' that failed.... can't use 'refresh' because I don't have password to use with my log in name..... can't use command prompt for that same reason.....i am a 63yr old 'amateur' pc person..... am communicating now by...
Solved Sfc /scannow command prompt in Performance & Maintenance
I ran the sfc /scannow command prompt on my Windows 8.1 desktop. It said it could fix all of the problems. So, I restarted it. It said the corrupted files were in C/Windows/Logs/CBS/CBS.log. I couldn't get it to paste the files on this forum. Also, command prompt gave me a not that said...
Command prompt (Admin) in General Support
Everytime I try to use the above command, the console box vanishes within a second. I have also tried to install chrome, the console opens and closes winthin a second, hence not able to read any nessages. I have full administrator right. No viruses Thanks
Command Prompt help in General Support
The average monitor can display 25 lines of text in full screen mode. When you list a directory containing more than 25 files, some of the filenames disappear off the top of the screen before you have a chance to read them. What do you add to the DIR command to always prevent this?
Hi, I often format my laptop and uses virtual machine as well. So I had a batch (.bat) file to change all windows setting through registry. This batch file also changes command prompt screen size, buffer size and quick edit mode. However this does not work on Windows 8 command prompt setting. ...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook