How find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

Discuss and share scripts and script files...
Post Reply
piverto
Posts: 2
Joined: 07 Sep 2021 13:55

How find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

Post by piverto »

Hi to all

I need to find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

How can I achieve this ? I am totally new to XYplorer and scripting !

TIA to experts here !

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: How find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

Post by highend »

Append a /x switch to your search pattern, e.g. *.jp*g /x
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: How find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

Post by Horst »

The XY gurus will tell you how to do that with native XY.
With the Everything script from Highend its a simple query
to get all folders without a folder.jpg into a Paper folder.
your_start_path folder: !child:folder.jpg
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

piverto
Posts: 2
Joined: 07 Sep 2021 13:55

Re: How find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

Post by piverto »

And how to find all folders
- containing either .doc OR .txt files
- but NOT containing .wav files

Is this possible ?

TIA to all experts here !

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: How find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

Post by Horst »

This Everything version 1.5 search should work
folder: child:<*.doc;*.txt> !child:*.wav
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

Norn
Posts: 416
Joined: 24 Oct 2021 16:10

Re: How find all foldres / subfolders NOT containing given file ( eg folder.jp?g)

Post by Norn »

For quicksearch:

Code: Select all

prop:#contains.*.txt:1 and !prop:#contains.*.wav:1 or prop:#contains.*.doc:1 and !prop:#contains.*.wav:1
So long. . .
Win10, Win11 @100% 2560x1440 22H2

Post Reply