How to change the file icon?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
piatan
Junior Member
Junior Member
Posts: 2
Joined: 2009-12-09, 17:30 UTC

How to change the file icon?

Post by *piatan »

Hi,
In my fs plugin I use custom file icons. Sometimes I would like to be able to change the icon. Unfortunately FsExtractCustomIcon function isn't called when I force rereading the directory. Is there any possibility to flush the icon cache without changing displayed directory?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, unfortunately not - the icons are cached for speed reasons. If these are some sort of commands (not files), you may consider to change the text a bit, e.g. "option xyz (on)" to "option xyz (off)", then you can have different icons.
Author of Total Commander
https://www.ghisler.com
piatan
Junior Member
Junior Member
Posts: 2
Joined: 2009-12-09, 17:30 UTC

Post by *piatan »

Yes, changing a file name solves the problem. I use the character of code 127 - it seems not to be displayed, so the file name looks unchanged. Thank you for hint.
Post Reply