Page 1 of 1

Help please to formulate a search using multiple paths

Posted: Mon Jul 10, 2023 6:21 pm
by burgundy
I want to search for particular files (to be specified) either on this path
"d:\med) "
or on this path
"d:\med "
Is it possible to write this as a single search?

(Clarification: there is one trailing blank in the first term and three trailing blanks in the second term which this board does not display. The actual search terms I wish to use do not have any quotation marks.)

Re: Help please to formulate a search using multiple paths

Posted: Mon Jul 10, 2023 9:12 pm
by NotNull
The forum "eats" extra spaces. You can use code tags (the </> button) to keep your text as-is:

Code: Select all

"d:\med) "
"d:\med   "
Your search could look like:

Code: Select all

"d:\med) " | "d:\med   "
(| = OR )

Re: Help please to formulate a search using multiple paths

Posted: Tue Jul 11, 2023 4:58 pm
by burgundy
I had been trying to use the modifier "path:" although your suggestion reminds me that in this particular case it is not strictly necessary.

If "path:" (or another modifier) were used, then could it be done by a use of a single entry of "path:"?

For example, maybe something like the following can be made to work. Although at this stage, this doesn't actually work.

Code: Select all

path:""d:\med) " | :"d:\med   ""

Re: Help please to formulate a search using multiple paths

Posted: Tue Jul 11, 2023 5:16 pm
by therube
path:<""d:\med) " | :"d:\med "">

Though I'm not sure of your quotes, much less that colon?

I'm thinking you'll want this:

Code: Select all

path:<"d:\med) " | "d:\med   ">