How to exclude specific folders when searching?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

How to exclude specific folders when searching?

Post by eswul62 »

I would like to exclude specific folders from the search results.

e.g.
search for : some textstring

folders to be excluded:
x:\doc
y:\other doc
z:\last folder

Any suggestions?

thanks
=
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude specific folders when searching?

Post by void »

Code: Select all

!x:\doc\ !"y:\other doc\" !"z:\last folder\" some textstring
https://www.voidtools.com/support/everything/searching/
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: How to exclude specific folders when searching?

Post by eswul62 »

Thanks a lot!

I did look at https://www.voidtools.com/support/everything/searching/
and noticed the ! parameter, but wasn't sure though.
e.g. grouping/not grouping
(also went on to try nopath:)

Ai!
just noticed the examples at the bottom, under examples... :oops:
(Limit the search to a single folder)

ahum.
WV-Mike
Posts: 21
Joined: Sat Oct 28, 2017 2:06 pm

Re: How to exclude specific folders when searching?

Post by WV-Mike »

void wrote: Fri Oct 03, 2014 8:52 am

Code: Select all

!x:\doc\ !"y:\other doc\" !"z:\last folder\" some textstring
https://www.voidtools.com/support/everything/searching/
I am having a similar problem.
I am trying to exclude files in the folder:
C:\Users\WV Mike\Desktop\Geology_tucson_area

And then search for all files which have the word "geology" in them.
This returns no results:
!C:\Users\WV Mike\Desktop\Geology_tucson_area geology

Thanks,
WV-Mike
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to exclude specific folders when searching?

Post by NotNull »

WV-Mike wrote: Sun Dec 12, 2021 10:18 pm !C:\Users\WV Mike\Desktop\Geology_tucson_area geology
Try it with:

Code: Select all

!"C:\Users\WV Mike\Desktop\Geology_tucson_area"   geology
Paths and/or filenames that contain spaces should be enclosed in "" as a <space> character is otherwise seen as an AND statement.



EDIT: Replaced all http instances with https
WV-Mike
Posts: 21
Joined: Sat Oct 28, 2017 2:06 pm

Re: How to exclude specific folders when searching?

Post by WV-Mike »

NotNull wrote: Sun Dec 12, 2021 11:14 pm
WV-Mike wrote: Sun Dec 12, 2021 10:18 pm !C:\Users\WV Mike\Desktop\Geology_tucson_area geology
Try it with:

Code: Select all

!"C:\Users\WV Mike\Desktop\Geology_tucson_area"   geology
Paths and/or filenames that contain spaces should be enclosed in "" as a <space> character is otherwise seen as an AND statement.
EDIT: Replaced all http instances with https
Thanks!
WV-Mike
Post Reply