Page 1 of 1

CFI: "label" a specific folder and its children only?

Posted: 09 Aug 2014 22:29
by Filehero
Hi,

how can I map an icon to a folder ("THEFolder") and its first-order child folders (ChildrenOfTHEFolder) ONLY?
In other words, the icon is applied to a single folder and its child folders only - any "deeper" folders are left untouched?

Leave icons untouched for

Code: Select all

[DRIVE]
[DRIVE]:A\
But change the icon for

Code: Select all

[DRIVE]:A\THEFolder\
[DRIVE]:A\THEFolder\ChildrenOfFolder\
And again stay away from every "deeper" folder

Code: Select all

[DRIVE]:A\THEFolder\ChildrenOfFolder\*

Thanks & cheers,
Filehero

Re: CFI: "label" a specific folder and its children only?

Posted: 10 Aug 2014 03:45
by TheQwerty
Precede the definition with an exclusion one:

Code: Select all

C:\TheFolder\*\*\>
C:\TheFolder\*\><xy>
Or if you want to change TheFolder as well you can replace the second one with a recursive pattern:

Code: Select all

C:\TheFolder\*\*\>
C:\TheFolder\ /r><xy>
The first line will match all folders which are grand-children or deeper in TheFolder, and tell XY to use the default icons.
The second line will match all folders which are children or deeper in TheFolder and use the custom icon.

Re: CFI: "label" a specific folder and its children only?

Posted: 10 Aug 2014 11:31
by Filehero
Thanks a lot, TheQuerty. As always spot on. :D

I feel a bit :oops: because I've read over the "Exclusions" paragraph sereval times, but the missing link stayed missing. In brief: stupidity. :wink:


Cheers,
Filehero