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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

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

Post 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

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

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

Post 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.

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

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

Post 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

Post Reply