How to exclude folders from results containing a certain word

Discussion related to "Everything" 1.5 Alpha.
Post Reply
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

How to exclude folders from results containing a certain word

Post by eswul62 »

Probably this is easy, but whatever I try, I do not get the desired results.

So, finally, I have no alternative but to ask this most probably dumb question here...

In the search box it reads:
N:\ img-08082016 121701

This displays the file '08082016 121701.jpg' located in various folders on N-drive (not network drive)
That is correct (some are backup folders)

Some folders include 'do not delete' in the name.
I do not want those folders to be displayed in the search results.

I want to exclude those folders from being displayed.

tried :
N:\ img-08082016 121701 !delete
N:\ img-08082016 121701 -delete

Either nothing changes, or nothing is displayed.

Gave up.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude folders from results containing a certain word

Post by void »

The following should have worked:

N:\ img-08082016 121701 !delete

Please make sure regex is disabled under the Search menu.


What other options do you have enabled under the Search menu?
You might have match path on too, which could be causing "!delete" too match too much.

Please try the following:

N:\ img-08082016 121701 !nopath:delete
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: How to exclude folders from results containing a certain word

Post by eswul62 »

Wow, still a reply, this late . . .
tried, no success, tried nopath
SnagIt-08072022 155903.png
SnagIt-08072022 155903.png (81.91 KiB) Viewed 2003 times
I am sure I am doing something wrong, but puzzled what exactly.
enduser
Posts: 24
Joined: Mon May 02, 2022 2:34 pm

Re: How to exclude folders from results containing a certain word

Post by enduser »

try !path:verwijderen
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: How to exclude folders from results containing a certain word

Post by eswul62 »

Ah... super!

Many thanks.
Indeed, that worked out fine.

One way or the other I 'felt' it should have something to do with the path
as basically I was searching on the file name only, whereas I wanted something in the path be excluded.
Or so...
Could not figure out how and what though.

Thanks again!
Post Reply