Folder icon by name

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
CPJ
Junior Member
Junior Member
Posts: 4
Joined: 2023-05-02, 12:06 UTC
Location: Vienna

Folder icon by name

Post by *CPJ »

Hi Guys

Is there a way to change folder icons by name? For files there are internal associations.

E.g., I have a folders 'some_project_IDEA', 'some_project_PROGRESS', and 'some_project_DONE'. So, when I finished the project, I change the folder name to *_DONE, etc. And I'd like to change the folder icon automatically when I change the name. Is there some way to do this in TC?

Thank you and best regards,
Claus
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50534
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Folder icon by name

Post by *ghisler(Author) »

You would have to set the "read only" attribute and put a file named desktop.ini in the folder, containing e.g.
[.ShellClassInfo]
IconResource=c:\path\program.exe,0
Author of Total Commander
https://www.ghisler.com
User avatar
CPJ
Junior Member
Junior Member
Posts: 4
Joined: 2023-05-02, 12:06 UTC
Location: Vienna

Re: Folder icon by name

Post by *CPJ »

ghisler(Author) wrote: 2023-05-03, 10:10 UTC You would have to set the "read only" attribute and put a file named desktop.ini in the folder, containing e.g.
[.ShellClassInfo]
IconResource=c:\path\program.exe,0
Thanks for the answer. But it's clear how adding a folder icon via desktop.ini works. That was not the question. I want this to happen automatically when I rename the file. E.g., when I create a new folder, I give it the name 'something_IDEA'. And it automatically gets a folder icon idea.ico. And when I rename the folder to 'something_PROGRESS', it automatically gets the folder icon progress.ico. Just as it is for files with internal associations.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Folder icon by name

Post by *Gral »

I don't know a way to achieve what you want with the icons. It would be much easier to achieve this with colors, where you can define one color for one name scheme, another for second name scheme.
User avatar
CPJ
Junior Member
Junior Member
Posts: 4
Joined: 2023-05-02, 12:06 UTC
Location: Vienna

Re: Folder icon by name

Post by *CPJ »

Thank you. I already use colour filters. But I want the whole package. Colour, icon, and name :wink:
I solved it by adding new right-klick menu entries that call different VBScripts. They set the icon and the name, and TC sets the colour.
Post Reply