SC quicksearch: exclude excluded folders from result list?

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

SC quicksearch: exclude excluded folders from result list?

Post by Filehero »

Hi,

from the SC quicksearch help:

Code: Select all

Use the /excl switch to exclude the contents of certain paths from the search results. It's the inline equivalent of the Excluded tab on the Find Files panel.

.....

· Like with the Excluded tab, the excluded paths themselves are shown (if they match the pattern), but not their contents. 
How do I search for directories (only) with the result list not containing the folder paths matched by the /excl switch?

Thanks,
FH

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

Re: SC quicksearch: exclude excluded folders from result list?

Post by highend »

By filtering them out with formatlist() afterwards
One of my scripts helped you out? Please donate via Paypal

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

Re: SC quicksearch: exclude excluded folders from result list?

Post by Filehero »

highend wrote:By filtering them out with formatlist() afterwards
I'm currently using regexreplace() for clearance, formatlist() seems to be a better choice, me thinks. :wink:

Anyway, a second SC call is required. Thanks for confirmation.

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC quicksearch: exclude excluded folders from result list?

Post by jupe »

This is slightly off topic, but I was wondering if the /excl switch should work when searching tags? Basically I want to exclude tagged files from a certain path from results, something like this:

Code: Select all

text quicksearch("5 /fld=rating /excl=pending", "c:\test");
and if files are rated 5 in c:\test\pending they still show in the results, /excl seems to only work in file search not tag search, is that by design?

admin
Site Admin
Posts: 66719
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: SC quicksearch: exclude excluded folders from result list?

Post by admin »

Looks like a bug to me. Good find! Gonna fix... :tup:

Post Reply