How do I search in a folder but not subfolders?
How do I search in a folder but not subfolders?
Basically what the title says. Is it possible to search inside a folder while excluding the subfolders?
Re: How do I search in a folder but not subfolders?
Please try the parent: search function, for example:
parent:c:\windows
parent:"c:\program files"
PS. Please update your forum email address (address unknown) from your name at the top right -> User Control Panel -> Profile -> Edit account settings -> Email address
parent:c:\windows
parent:"c:\program files"
PS. Please update your forum email address (address unknown) from your name at the top right -> User Control Panel -> Profile -> Edit account settings -> Email address
Re: How do I search in a folder but not subfolders?
Can this or parents: or some other way do this (no-sub-folders:) but with relative or partial paths?
Say I have two trees:
can I do a search of
but not subfolders ?
I could use parents:, but in this case they're at different directory levels.
So parents:3 would work for one, & parents:4 would work for the other, but not both.
(And a parents:3-4 would also not work, because then any potential unwanted subdirectory could be picked up.)
And I could use parent:, but then I need full paths to each, & an or:
(all of which isn't particularly convenient to enter).
Say I have two trees:
Code: Select all
C:\out\COPY\X\
X:\Z\out\COPY\X\
/out/COPY/X/
but not subfolders ?
I could use parents:, but in this case they're at different directory levels.
So parents:3 would work for one, & parents:4 would work for the other, but not both.
(And a parents:3-4 would also not work, because then any potential unwanted subdirectory could be picked up.)
And I could use parent:, but then I need full paths to each, & an or:
parent:C:\out\COPY\X\ | X:\Z\out\COPY\X\
(all of which isn't particularly convenient to enter).
Re: How do I search in a folder but not subfolders?
That will not work. One of the following will:therube wrote: ↑Thu Mar 23, 2023 4:56 pm And I could use parent:, but then I need full paths to each, & an or:Code: Select all
parent:C:\out\COPY\X\ | X:\Z\out\COPY\X\
parent:C:\out\COPY\X | parent:X:\Z\out\COPY\X
parent:<C:\out\COPY\X\|X:\Z\out\COPY\X\> (no spaces around |)
parent:<C:\out\COPY\X|X:\Z\out\COPY\X> (no spaces around |)
parent:C:\out\COPY\X\;X:\Z\out\COPY\X (requires Everything 1.5)
And with Match whole filename when using wildcards enabled (Options => Search) this will do:
Code: Select all
\out\COPY\X\*
Re: How do I search in a folder but not subfolders?
I think I might like that.And with Match whole filename when using wildcards enabled (Options => Search) this will do:
I'll have to see how it goes...