how do i exclude folders from my search?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
BigDan
Posts: 51
Joined: Tue May 23, 2017 9:24 pm

how do i exclude folders from my search?

Post by BigDan »

when i do a search for something such as pdf, how do i exclude folders from my search?

i'd also like to know how to limit my search to a folder without looking at subfolders. for example if i'd like to search for pdfs in c:\users\me\downloads how do i make sure files in downloads\movies dont show up?

btw is there a simple way to limit my search to downloads without having to type that whole path in?
void
Developer
Posts: 16676
Joined: Fri Oct 16, 2009 11:31 pm

Re: how do i exclude folders from my search?

Post by void »

Prefix the path with the NOT operator (!)

For example:
!downloads\movies
BigDan
Posts: 51
Joined: Tue May 23, 2017 9:24 pm

Re: how do i exclude folders from my search?

Post by BigDan »

Sorry I should've been more clear. I meant I don't want it in ANY of the subfolders not just that specific one.
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: how do i exclude folders from my search?

Post by therube »

ext:pdf

And so long as you don't have a directory named something like:
c:/somethinglike.pdf/
, it will only find files, not directories.
BigDan
Posts: 51
Joined: Tue May 23, 2017 9:24 pm

Re: how do i exclude folders from my search?

Post by BigDan »

when I type in "txt \downloads" i get thousands of results. But a number of them are in various subdirectories. I can filter out one subdirectory by typing in "!\comics" or something like that but how do i filter out the contents of ALL subdirectories?
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: how do i exclude folders from my search?

Post by ovg »

try:
txt infolder:you_folder
BigDan
Posts: 51
Joined: Tue May 23, 2017 9:24 pm

Re: how do i exclude folders from my search?

Post by BigDan »

ovg wrote: Mon Jun 01, 2020 1:45 pm try:
txt infolder:you_folder
I'm sorry I didn't follow. Do I replace the word "you" with something? And my folder is called Downloads, do I simply type that in or the whole path? Tried typing in downloads with the text you gave me, 0 results.
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: how do i exclude folders from my search?

Post by ovg »

txt infolder:downloads
Post Reply