How to exclude sub-folders from Folder View Settings?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Schuller
Posts: 195
Joined: 02 May 2023 21:08

How to exclude sub-folders from Folder View Settings?

Post by Schuller »

Please help...

I want to apply a folder view to setting to multiple past and present tenant folders where each folder has a different name(tenant names) and I don't want those folder view setting to flow down to the sub-folders immediately after. I know there is an include sub-folders option but is there a way to exclude sub-folders immediately after these directories that have different names?

Are the "*" and "?" the only options available in the "Folder to apply the settings to:"

Here is what I did but the folder views are flowing down to the sub-folders. The last * in the example below I intended for different tenant names but the folder views flow down to the sub-folders. When I type the actual tenant name in place of the * then it works fine but that would take a long time with several past and present tenants.

FOLDER 1 *\current tenants\*\
FOLDER 2 *\past tenants\*\

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to exclude sub-folders from Folder View Settings?

Post by highend »

I don't get it. If the subfolders option is not ticked, the root folder view isn't applied to the root subfolders...
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to exclude sub-folders from Folder View Settings?

Post by highend »

Animation.gif
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: How to exclude sub-folders from Folder View Settings?

Post by klownboy »

Try setting the desired folder view for:
FOLDER 1 *\current tenants\* when you are located in one of those "tenant" name(s) sub folders. Don't include sub folders in options.
and another folder view for: the sub folders under the tenamts as
FOLDER 2 *\past tenants\*\* when you are located in one of those sub folders under the tenant names.
No final backslash. I'm not sure what your first * is for in each case?

For my case I have something like this: My sub folders under "G:\Travel and Vacations" have a different folder view setting than the parent.
Manage Folder Views.jpg
It looks like highend has beat me to it.
To see the attached files, you need to log into the forum.

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: How to exclude sub-folders from Folder View Settings?

Post by Schuller »

I have a column layout and view mode setup that I like in a certain folder. Now I want to apply this same folder view also to several other folders that don't share the same parent folder and these other folders also have [different names] with child folders below them too, however I only want to apply it those folder with [different names] and not their child folders

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: How to exclude sub-folders from Folder View Settings?

Post by Schuller »

Klownboy, the * in the beginning was because the path is not absolute(multiple tenants branching off from multiple buildings and addresses spreading over multiple years)
I'm trying to apply a folder view(s)(hopefully once or twice only) to sub-folders of a root directory where the paths from the root directories to those sub-folders are different and then those eventually sub-folders have different names too.
In the past I was just hitting the F button and it works well, however I just I recently discovered the "Apply this Folder to View Also To" option and tried it with success in some cases and its awesome feature that could save me a lot of time. I know what I'm trying to achieve must be so simple but I've spent an enormous amount of time just trying to figure this out.

Anyway, I tried your examples and I can do that successfully and to be honest, I experimented with that before even posting here. According to that example and the way I understand it, it seems I would have define each tenant name specifically in the Apply Folder View option and if that is the case, then I might as well hit that F button again.

Question, what happens when saved Folder Views conflict with each other?

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: How to exclude sub-folders from Folder View Settings?

Post by Schuller »

Seems like you can't use the "&" symbol like *\husband & wife\* but *\husband ? wife\* works

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: How to exclude sub-folders from Folder View Settings?

Post by klownboy »

I'm far from being an expert, but if you haven't already, you should take a look at "Folder View Settings" in the help file. I think some of your questions, at least in part, may be covered there. Some excerpts.
How Folders Are Identified
Folder to apply the settings to. Folders are identified by their full name, or by a wild-carded pattern. By using a pattern e.g. like *\Images* you can define a common Folder View all folders named "Images". Note that it's also possible to state a list of patterns separated by | (pipe). An example for a list of patterns would be *\Images*|*\Pics*.
Best Match Algorithm
If more than one folder view matches the current folder then the best match is determined like this:
(1) Match ranking from best to worst in 4 groups: Full Match > Pattern Match > Full Match Including Subs > Pattern Match Including Subs.
(2) If more than one pattern matches within one group, then the longest pattern (character count) wins.
This way you don't have to care about manually sorting the Folder Views (which could be a lot of work if there are hundreds of them!).

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: How to exclude sub-folders from Folder View Settings?

Post by Schuller »

Thanks Klownboy.

The example in the help file "*\images*|*Pics*" I was aware of and I ended up achieving what I wanted that way by typing out a few hundred tenant names separated with the | (pipe) in notepad. That little box in Edit Folder View is way to small for mass additions and I could not find any pencil icon that allows you to edit in a bigger box or I could not see any options in list management. So anyway, yeah, I ended up typing out a few 100 hundred names in notepad then copying it over to that tiny manage folder views box and its works now. My goal was not to that but I'm not sure its possible to achieve what I i was trying to do.

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: How to exclude sub-folders from Folder View Settings?

Post by klownboy »

Well, it is too bad you had to go through all that to get it to work. When I have some time, I'll try some mockup folders and subs to see if I can get it to work.

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: How to exclude sub-folders from Folder View Settings?

Post by Schuller »

Sure, I appreciate that. I will want to figure that at some point but I had to move forward with my work for now as I wasn't making any progress there with my head stuck in XY setting mode for the past 2 weeks.
I already know how to apply folder view setting to multiple folders at different locations, its just this particular branch of folders that is troubling me. I've expedited enough processes already with XY so I'm happy. I will try to provide a more detailed representation of this particular folder hierarchy later. Those earlier scenarios, no matter what I did and even in the absence of a tick to the "apply to sub folders", settings still somehow flowed down the hierarchy to lower sub-folders. I also realized after that the column layouts made and views setup in Tabs can supersede the any previous saved folder views, which through me off a bit.

Post Reply