Quick Search: Find Files if NOT

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
WirlyWirly
Posts: 332
Joined: 21 Oct 2020 23:33
Location: XY 64-Bit | Win 11 @ 100% (3440x1440)

Quick Search: Find Files if NOT

Post by WirlyWirly »

Hello, I'm trying to run a quick-search to find all files that are NOT of the following types...

Code: Select all

:!*.zip or :!*.cbz or :!*.rar or :!*.cbr
It works fine if I only use one file-type such as :!*.zip, however when I try to add more than a single file-type I can't get it to work. I've tried all types of combinations and no luck. In this case I'm trying to see only files that are not archives.

Any tips?

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

Re: Quick Search: Find Files if NOT

Post by highend »

01. This must be an AND combined search term, you don't want to find *.abc, AND NOT *.def AND NOT ...
02. All : after the first one will be searched literally because they are neither a boolean marker NOR a scope

-> :!*.zip & !*.cbz & !*.rar & !*.cbr
One of my scripts helped you out? Please donate via Paypal

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

Re: Quick Search: Find Files if NOT

Post by admin »

Or :!(*.zip or *.cbz or *.rar or *.cbr)

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

Re: Quick Search: Find Files if NOT

Post by highend »

Is there no way to negate the /types= switch? Would be way easier...
One of my scripts helped you out? Please donate via Paypal

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

Re: Quick Search: Find Files if NOT

Post by admin »

Good question. It's coming...

Post Reply