Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Folder Icons (Desktop.ini)

Folder Icons (Desktop.ini)

Forum Windows XP : Windows XP General Discussion - Folder Icons (Desktop.ini)

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

For easy recognition, all folders in my data are assigned an Icon.
The Desktop.ini files in each folder point to a specific Icon Folder
which is never moved, so that the icons are always visible in Explorer View.

What baffles me is that in moving or copying data folders, the icon is not
always visible, even after an F5 refresh. The Desktop.ini file are copied, but
the icons are still not visible. This requires the laborious right-clicking
each folder Properties, change Icon etc. Then and only then the icons are
visible again.

(N.B. this usually happens when copying files either from a CD/DVD or from a
Windows Briefcase, to another folder)
If the path to the icon is correct and the ini file is present, why does
this happen?

--
Twanny

Sponsored Links
Register or log in to remove.
- 0 +

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Hello?
Any suggestions please?
Thanks

"Twanny" wrote:

> For easy recognition, all folders in my data are assigned an Icon.
> The Desktop.ini files in each folder point to a specific Icon Folder
> which is never moved, so that the icons are always visible in Explorer View.
>
> What baffles me is that in moving or copying data folders, the icon is not
> always visible, even after an F5 refresh. The Desktop.ini file are copied, but
> the icons are still not visible. This requires the laborious right-clicking
> each folder Properties, change Icon etc. Then and only then the icons are
> visible again.
>
> (N.B. this usually happens when copying files either from a CD/DVD or from a
> Windows Briefcase, to another folder)
> If the path to the icon is correct and the ini file is present, why does
> this happen?
>
> --
> Twanny
>

Reply to twanny
- 0 +

Hello,

I had a a same "problem". You have to change the folder attributes.

exp.:

After when I copy the desktop.ini into c:\test give a read only attrib to c:\test.

Zsolt

Reply to ngnr5

I also have the same problem, since quite a while and I cannot find an easy fix.
It's not a big thing, but it's quite annoying.

It seems that there is an internal flag (perhaps in the registry or the directory entry) telling the shell it should lookup for Desktop.ini for the folder icon.

If you customize the icon of a folder, a Desktop.ini file will be created in that folder.
If you create a new folder and copy that Desktop.ini in, it will have no effect.
BUT if you customize the icon of the second folder, then overwrite it's Desktop.ini with the one of the first folder, the second folder will show like the first one.

For some reason, this 'internal flag' is reset on some operations (compression, SVN update, etc.), especially when using applications that are not aware of that flag. All folders then loose their icons.

If anyone finds the trick, thanks for posting it here!
If I find anything, I will let you guys know.

Reply to Bigue Nique

I finally found what the 'internal flag' is! (quite simple, actually).

I found the trick by reading that page: http://forums.stardock.com/163152 (although it doesn't fix the problem).

When you customize a folder Icon:
- The folder gets the 'Read-Only' attribute
- Desktop.ini gets 'Hidden' and 'System' attributes

The Desktop.ini attributes have no impact on wheter the folder icon will be displayed.
It's the folder's 'Read-Only' attribute that tells Explorer to read Desktop.ini for icons! :sol:

But watch out! the confusing thing is that changing the 'Read-Only' status in the Folder properties won't change the folder's attibute!

You have to use the following command line (run "CMD" ):

Code :
  1. attrib +R folder



If you need to restore a lot of folder icons at the same time:

Code :
  1. attrib /S /R +R folder


This will set the 'Read-Only' attribute to all files and folders recursively.

You can then use the shell Properties to remove the 'Read-Only' attribute from all files and folders (without altering the folders' actual 'DOS' 'Read-Only' attribute!)

Hope this helps.

Reply to Bigue Nique
- 0 +

Thx for the tip

I just added a "Set folder read-only" context menu item on shell folders to avoid typing the attrib command.
Here, the registry entry I used :

Code :
  1. Windows Registry Editor Version 5.00
  2. [HKEY_CLASSES_ROOT\Folder\shell\SetReadOnly]
  3. @="Set folder read-only"
  4. [HKEY_CLASSES_ROOT\Folder\shell\SetReadOnly\Command]
  5. @="cmd /c attrib +r \"%1\""


(copy-paste the code in a .REG file and merge)

Reply to gg67
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Folder Icons (Desktop.ini)
Go to:

There are 1173 identified and unidentified users. To see the list of identified users, Click here.

Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them
  • 01:00 bew1075k won the Uniformed badge
  • 01:00 Parasitic won the Uniformed badge
  • 01:00 X3no won the Uniformed badge
  • 01:00 Siq won the Uniformed badge
  • 01:00 wayspooled won the Uniformed badge
  • 01:00 chris62 won the Freshman badge
  • 01:00 Tattysnuc won the Freshman badge
  • 01:00 gamerk316 won the Freshman badge
  • 05:23 jsc won the Overclocking badge
  • 01:00 rolli59 won the Spy badge