Folder icons not displaying properly in explorer


  1. Posts : 4
    Windows 7 Professional 64 bit
       #1

    Folder icons not displaying properly in explorer


    So I've gone through the work of writing a custom java program to help modify my folder icons.
    Said program
    creates a desktop.ini file in each folder I run it on
    writes this into the .ini file
    Code:
    [.ShellClassInfo]
    ConfirmFileOp=0
    IconFile=.\3-10 To Yuma.ico
    IconResource=.\3-10 To Yuma.ico,0
    Logo=.\3-10 To Yuma.ico
    iconindex=0
    sets the hidden attribute on the icon to hide it as I store the icon in the same directory as the desktop.ini and music/movie/game/insert file here.
    sets the system attribute on the directory
    sets the read only attribute on the directory
    sets the hidden attribute on desktop.ini
    sets the system attribute on desktop.ini


    All in all, there should be no reason I can't see my folder icons, correct? After running my program, everything is modified and attributed as it should be without any glitch. But explorer still does not actually show me the folder icon for a thumbnail. Although I am using a program for this process, it should be identical to doing it manually.

    HOWEVER, when I set "Change your view" to small, list, or details, the icon appears..although very small as the name implies. Even right clicking the file displays the icon properly on the properties pane.

    right click>properties>customize>change icon> DOES work properly, but I have approx. 1.5-2k folders I'm looking to do icons for...thus the program that I wrote today. It would take obscene amounts of time to do it all through customize, and that sets an absolute path that would need to be edited in desktop.ini anyway.

    Can anyone think of any reason that the icon is not displaying properly on "Large Icons"?
    Also, does anyone know of a way to force windows to re-parse the desktop.ini more quickly so I don't have to play a waiting game with explorer? (F5 does not work for this)
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    I would give this a try:
    Icon Cache - Rebuild
      My Computer


  3. Posts : 4
    Windows 7 Professional 64 bit
    Thread Starter
       #3

    I found that solution recommended elsewhere also. No change in my folder's behavior from the rebuild
      My Computer


  4. Posts : 5,092
    Windows 7 32 bit
       #4

    Perhaps the ico file is corrupt or not structured correctly. I would try another .ico and see if it makes any change.
      My Computer


  5. Posts : 4
    Windows 7 Professional 64 bit
    Thread Starter
       #5

    Well, we're on to something now...

    By itself, the new icon does not fix the problem completely.

    If I run my program on the folder first to set all the attributes and modify the .ini first. THEN drop the new icon in, it occasionally works. When it does work I need to re-run my program on the folder for my own little OCD to make the icon hidden properly.

    my ~absolute guess~ is that something with copying the new file is occasionally triggering a re-parse of desktop.ini...do you have any better ideas so we can take the guesswork out of this? I'd like to not have to play a guessing game on whether the icon is going display properly or not

    Tried it on two folders with slightly different .ini characteristics..one without confirmfileop and the other without iconindex=0. One had the icon added, then rerun the program, the other I ran the program then dropped in the icon and re-ran the program. Neither is displaying properly in large icon view, both work in small icon view

    EDIT: Also tried, out of curiosity, closing and restarting explorer.exe...does not fix the issue
    Last edited by nuclearmage; 29 May 2014 at 08:28. Reason: New information
      My Computer


  6. Posts : 5,092
    Windows 7 32 bit
       #6

    I haven't done much with this type of thing. Perhaps some of the regulars in Customization sub-forum will have some ideas. You could start a thread there and put a note here for the moderator to delete this thread, or ask for it to be moved. Moving it yourself would probably be faster though.

    All I've done afa customization is install themes. The few times I played around with desktop.ini I ended up putting it back to defaults. :)
      My Computer


  7. Posts : 4
    Windows 7 Professional 64 bit
    Thread Starter
       #7

    Folder icons not displaying properly in explorer


    Rebuilding Icon cache does not seem to resolve the issue.

    Creating a new icon just in-case the old icon was corrupted somehow resulted in...
    By itself, the new icon does not fix the problem completely.

    If I run my program on the folder first to set all the attributes and modify the .ini first. THEN drop the new icon in, it occasionally works. When it does work I need to re-run my program on the folder for my own little OCD to make the icon hidden properly.

    my ~absolute guess~ is that something with copying the new file is occasionally triggering a re-parse of desktop.ini...do you have any better ideas so we can take the guesswork out of this? I'd like to not have to play a guessing game on whether the icon is going display properly or not

    Tried it on two folders with slightly different .ini characteristics..one without confirmfileop and the other without iconindex=0. One had the icon added, then rerun the program, the other I ran the program then dropped in the icon and re-ran the program. Neither is displaying properly in large icon view, both work in small icon view

    EDIT: Also tried, out of curiosity, closing and restarting explorer.exe...does not fix the issue
    Last edited by Brink; 29 May 2014 at 09:50. Reason: moved to original thread
      My Computer


 

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

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