Folder Icons, desktop.ini

Is setting a folder's icon not as simple as changing the values within desktop.ini?

For example, I'd like each folder to be self-contained, and have an icon named 'foldericon.ico' within the folder, that will be the icon for that folder. I have set the desktop.ini to that icon. I realize that Windows uses the full path for the folder icons, so I changed the "IconFile=" from "Drive:Pathfoldericon.ico" to ".foldericon.ico". That works just fine.

However, if I try to copy that Desktop.ini out of that folder, and place it into another folder that also has a (however, different) foldericon.ico, the folder's icon does not change.

Are there some registry settings that are changed, or am I doing something wrong here?

EDIT:

For good measure, here is the desktop.ini that I'm working with:

[.ShellClassInfo]
IconFile=.foldericon.ico
IconIndex=0

Where "foldericon.ico" is the icon I wish the folder to have.

#309742

i know this is old, but i wonder if now anybody has a solution... i'm having the same problem

#407825

I think that you should change the dot to the hole address from where the icon is, I dont know for sure though but it never hurts to try :P

#407955

problem is, there is something more than the desktop.ini file. When you set a custom icon, "something" changes in the folder, and from that moment it starts checking for a desktop.ini file and sets the icon. Don't really know what is it, but just adding the file is not enough :slant:

EDIT: there I found it:

in this article on msdn they tell you that desktop.ini files work if the folder is a "system folder", i.e. you need to set its system attribute from the prompt with attib +s foldername :)

#407959

hey thanks a lot... ATTRIB +S does work.... but i think there must be another way.

the thing is if you add an icon with the right click then properties it works

but when you manually add the Desktop.ini and then add the +S, since now its a system folder it won't let you hide it :S, which doesn't occur with the "right click then properties" method.

#408108