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
Folder icon by name
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50534
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Folder icon by name
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
[.ShellClassInfo]
IconResource=c:\path\program.exe,0
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Folder icon by name
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.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
Re: Folder icon by name
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.
Re: Folder icon by name
Thank you. I already use colour filters. But I want the whole package. Colour, icon, and name 
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.

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.