customizing a folders icon

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
neverthelesshello
Member
Member
Posts: 136
Joined: 2010-02-26, 11:52 UTC

customizing a folders icon

Post by *neverthelesshello »

If I make a file called desktop.ini which goes inside the folder whose icon yo want to change and the info inside the desktip ini file is like this:

Code: Select all

[.ShellClassInfo]
LocalizedResourceName=@shell32.dll,-21762
why does this work in some folders but not others? if I do it in folders in the Program files dir it doesnt but for instance in
c:\Documents and Settings\abecu\Start Menu\Programs\
it works
What you dont see is what you get!
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

How to Customize Folders with Desktop.ini
To make a folder a System-Folder you can set the "System" or (better) the "Read only" attribute of the folder!

HTH
Holger
neverthelesshello
Member
Member
Posts: 136
Joined: 2010-02-26, 11:52 UTC

Post by *neverthelesshello »

thanks for the link but if I make my programs folder a read only folder wont that affect the programs using it?
hmm I made it read only but the icon still doesnt change
strange how I can do the same to a folder on c:\
ie. C:\test folder

it works fine and I dont have to make it read only
What you dont see is what you get!
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

if I make my programs folder a read only folder wont that affect the programs using it?
No (if you change only the folder attribute and not the attributes of the contained files)
Just use
"TC Main menu -> File -> Change Attributes":
[_] Recursive directory
[X] Read only

instead of "File->Properties".

Your thread is named "customizing a folders icon".
Editing the "LocalizedResourceName=" does only effect the folder name shown inside Explorer.
TC always shows the real folder name.
Changing the icon should be done via "IconFile=" or "IconResource" eg:

Code: Select all

[.ShellClassInfo]
IconResource=C:\Windows\syswow64\shell32.dll,141
Regards
Holger
neverthelesshello
Member
Member
Posts: 136
Joined: 2010-02-26, 11:52 UTC

Post by *neverthelesshello »

Thanks for theinfo I will try it out
but the code that I showed works for me!!
EDIT, cant replicate it working now so must have been my mistake
so the answer was to use Total commanders file menu instead of rightclick and choosing properties.

ok tried it using Total commanders menu as you suggested
and it works
I had tried 3 differnt deskop.ini versions before the other two were

Code: Select all

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787
which didn't work but including an icon within the folder and using

Code: Select all


[.ShellClassInfo]
IconIndex=0
IconFile=myicon.ico (this can be any name)
ConfirmFileOp=0
InfoTip=
worked
What you dont see is what you get!
Post Reply