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?
how do i exclude folders from my search?
-
void
- Developer
- Posts: 19903
- Joined: Fri Oct 16, 2009 11:31 pm
Re: how do i exclude folders from my search?
Prefix the path with the NOT operator (!)
For example:
!downloads\movies
For example:
!downloads\movies
-
BigDan
- Posts: 62
- Joined: Tue May 23, 2017 9:24 pm
Re: how do i exclude folders from my search?
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: 5727
- Joined: Thu Sep 03, 2009 6:48 pm
Re: how do i exclude folders from my search?
ext:pdfAnd so long as you don't have a directory named something like:
c:/somethinglike.pdf/-
BigDan
- Posts: 62
- Joined: Tue May 23, 2017 9:24 pm
Re: how do i exclude folders from my search?
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: 295
- Joined: Thu Oct 27, 2016 7:19 pm
Re: how do i exclude folders from my search?
try:
txt infolder:you_folder
txt infolder:you_folder
-
BigDan
- Posts: 62
- Joined: Tue May 23, 2017 9:24 pm
Re: how do i exclude folders from my search?
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: 295
- Joined: Thu Oct 27, 2016 7:19 pm
Re: how do i exclude folders from my search?
txt infolder:downloads