Folder icons not displaying properly in explorer

nuclearmage

New member
Local time
10:20 AM
Messages
4
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 My Computer

At a glance

Windows 7 Professional 64 bitGTX 580
Computer type
PC/Desktop
OS
Windows 7 Professional 64 bit
Graphics Card(s)
GTX 580
Screen Resolution
1920x1080
Mouse
G6000
Browser
Chrome

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I found that solution recommended elsewhere also. No change in my folder's behavior from the rebuild
 

My Computer My Computer

At a glance

Windows 7 Professional 64 bitGTX 580
Computer type
PC/Desktop
OS
Windows 7 Professional 64 bit
Graphics Card(s)
GTX 580
Screen Resolution
1920x1080
Mouse
G6000
Browser
Chrome
Perhaps the ico file is corrupt or not structured correctly. I would try another .ico and see if it makes any change.
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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:

My Computer My Computer

At a glance

Windows 7 Professional 64 bitGTX 580
Computer type
PC/Desktop
OS
Windows 7 Professional 64 bit
Graphics Card(s)
GTX 580
Screen Resolution
1920x1080
Mouse
G6000
Browser
Chrome
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 My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 a moderator:

My Computer My Computer

At a glance

Windows 7 Professional 64 bitGTX 580
Computer type
PC/Desktop
OS
Windows 7 Professional 64 bit
Graphics Card(s)
GTX 580
Screen Resolution
1920x1080
Mouse
G6000
Browser
Chrome
Back
Top