Hello
How can i search multiple file at once using es.exe ?
i tried
es.exe -s -ext PDF -a-d -path "\\my\network\path" "file1|file2" also with single quote
es.exe -s -ext PDF -a-d -path "\\my\network\path" file1|file2 | returns an error
i think -filelist-filename could be a solution but i don't understand how it should be formatted
search multiple files with es.exe
Re: search multiple files with es.exe
(Ah, the 'ol -s, & -s* for that matter. I've got to think about that a bit more... myself
).
-ext should be, ext:, so - otherwise, you are looking for "-ext" AND "file1"
your UNC path should be fine (so long as that is something that is actually indexed)
"file1|file2", the quotes say to look for that, literally (which is not likely to find anything)
your second try, says to look for file1 on \\my\network\path
OR (|) file2, anywhere at all.
What you need is grouping < >, <file1 | file2>
But with the command-line, you need to ESCAPE things like \ & | > < ^
^ acts as an ESC character. (As does double quotes, ", but that won't work in this instance.)
So you'll need something like:
(where ^ ESCAPES the < > and |
& again, that assumes that \\my\network\path is actually indexed)
-ext should be, ext:, so
ext:pdfyour UNC path should be fine (so long as that is something that is actually indexed)
"file1|file2", the quotes say to look for that, literally (which is not likely to find anything)
your second try, says to look for file1 on \\my\network\path
OR (|) file2, anywhere at all.
What you need is grouping < >, <file1 | file2>
But with the command-line, you need to ESCAPE things like \ & | > < ^
^ acts as an ESC character. (As does double quotes, ", but that won't work in this instance.)
So you'll need something like:
es.exe -s -ext:PDF -a-d -path "\\my\network\path" ^< file1 ^| file2 ^>(where ^ ESCAPES the < > and |
& again, that assumes that \\my\network\path is actually indexed)
Re: search multiple files with es.exe
-ext pdf is fine.
This shows the extension column and searches for pdf
To find only *.pdf files, include the following in your es search:
-or-
While " can escape |, ES passes the command line as is to Everything, so " are treated literally.
Use -search to specify a single parameter, eg:
The quotes are removed and the | is escaped.
or, as the therube mentions, use ^ to escape ^| eg:
This shows the extension column and searches for pdf
To find only *.pdf files, include the following in your es search:
ext:pdf-or-
*.pdfWhile " can escape |, ES passes the command line as is to Everything, so " are treated literally.
Use -search to specify a single parameter, eg:
es.exe -s -ext PDF -a-d -path "\\my\network\path" -search "file1|file2"The quotes are removed and the | is escaped.
or, as the therube mentions, use ^ to escape ^| eg:
es.exe -s -ext PDF -a-d -path "\\my\network\path" file1^|file2