08.10.24 Added: Set custom folder icons via internal associations, only used when defining custom filter with advanced options "Attributes" and "Directory" checked (32/64)
No, per folder icons could already be set previously, by setting the attribute to read only and adding a file named desktop.ini inside with content like this:
[.ShellClassInfo]
IconResource=c:\totalcmd\totalcmd.exe,0
KozakMak wrote: 2024-10-11, 06:30 UTC
And how can I do it?
As described, create an internal association using a predefined selection type. When defining the selection you must specify on the Advanced tab to explicitly check for the Directory attribute.
[Associations]
Filter1=>bak folders
Filter1.icon=%commander_exe%
[searches]
bak folders_SearchFor=bak.
bak folders_SearchIn=
bak folders_SearchText=
bak folders_SearchFlags=0|002002000020||||||||22221|0000|||
I tried the above already earlier but icon doesn't show in the folder list (both 32/64) are there any related settings that might need to be (un)set as well?
hi5 wrote: 2024-10-11, 20:06 UTC
I tried the above already earlier but icon doesn't show in the folder list (both 32/64) are there any related settings that might need to be (un)set as well?
Are you talking about the internal association? Works for me. Did you restart TC?
BTW, I don't know if it is relevant, but there is a bug with the feature:
ghisler(Author) wrote: 2024-10-11, 10:06 UTC
That did the trick for me, thanks! It's caused by the new function to set custom folder icons via internal associations. I will fix it.
Yes, I copy what you have (which is what I already had but with different search and icon) and it doesn't work. I was just curious but I know how it looks as I've used the desktop.ini trick in the past and I don't care much for it. Strange that I don't see them but probably something very specific in my setup.
(changing the "icons" as in the other thread doesn't make a difference, even after restarting).
I used the example posted by white, only difference is that I changed Filter1 to Filter15. I also tried it with a clean ini i/=icontest.ini and the icon doesn't show. Just the regular same old folder icons. Strange.
hi5 wrote: 2024-10-11, 21:12 UTC
I used the example posted by white, only difference is that I changed Filter1 to Filter15. I also tried it with a clean ini i/=icontest.ini and the icon doesn't show. Just the regular same old folder icons. Strange.
I assume you mean "/i=icontest.ini". That would result in c:\windows\icontest.ini being used, where you don't have write access..
Try for example: /i=%tmp%\icontest.ini
You're correct, with /i=%tmp%\icontest.ini your example works. But in my regular c:\totalcmd\wincmd.ini with the exact same saved search/internal association: no icons. (To add: I created it in TC, not by editing the ini directly - having it seen in action now I don't think I will be using it but I can imagine people might enjoy it)
Make sure you don't have multiple sections [Associations] or [Searches], because Windows can only handle one of each. If you already had such a section, you need to add the lines below the header to the already existing section. For example, if you already had a section named [Associations], you need to add the two lines
Filter1=>bak folders
Filter1.icon=%commander_exe%
below that existing header [Associations] and not add a separate section. Make sure to adjust the filter number, e.g. if you already had Filter1 to Filter5, you would need to change the above to:
Filter5=>bak folders
Filter5.icon=%commander_exe%
I now have a new problem, icons showing while they shouldn't viewtopic.php?t=84167
(I deleted all the tests via TC so BAK etc aren't there anymore in my wincmd)
Issue fixed in 11.50b3 viewtopic.php?p=462209#p462209
Now folders have the correct icons when I do and do not want them - so the BAK example now works with my regular wincmd.ini