How to exclude folder names

General discussion related to "Everything".
Post Reply
Supercoucou
Posts: 3
Joined: Mon Nov 29, 2021 4:31 pm

How to exclude folder names

Post by Supercoucou »

Hello,

I would like to know how to find the files which are on my disk d: which are in .txt format and whose name contains TOTO but without the files which have TOTO in their name of name

d: * .txt TOTO
of
file: d: TOTO* .txt
of
file: d: * .txt TOTO

It does not work:

I found the files without problem:
TOTO CLASSIC prospecting 2020 OK.txt
TOTO zey OK.txt
TOTO alsoi.txt

But alas also the files which do not have 'TOTO' in their name but which are in a directory which contains TOTO in its path.
Example:

The 'License.txt' file which can be found in:
D: \ Mieux-photographier.com \ blog \ virus-free blog \ TOTO-content \ plugins \ subscribe2 \ License.txt

Thank you for your help
therube
Posts: 5015
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to exclude folder names

Post by therube »

I think it will be much like, List folders containing "*.flac>150MB" AND "*.cue".

d: gets you d:
file: gets you files
ext:txt gets you .txt extension (different from "test.txt.123")
ww:TOTO gets you "TOTO" (different from "TOTOoncurrent.txt")
(use of some of these may depend on just what you're looking for, & the "exactness" you need)


The directory part, again I believe may be handled by one of the child*.*: functions?
void
Developer
Posts: 16950
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude folder names

Post by void »

Please make sure no search options are enabled under the Search menu.

I think I understand, you want TOTO in the path, but not the basename.

Please try the following search:

d: *.txt file: path:toto !toto

-or-

file:d:\**TOTO**\*.txt
Post Reply