Complex search from command line.

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
wetware05
Posts: 13
Joined: Wed Dec 21, 2022 5:09 pm

Complex search from command line.

Post by wetware05 »

Hi.

I don't quite understand how everything and the executable from the command line es.exe interact. If you access the help for es.exe, it says that the Everything commands work, but it doesn't seem to. I have this search generated by everything: dm:>=11/04/2023 ext:mp4 I:\Tutor\ | H:\Temp | M:\Temp01 | F:\Temp02\ -export-txt h:\files.txt, but it gives an error from the command line. :roll:

Thanks in advance
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Complex search from command line.

Post by NotNull »

Some of these characters have special meaning on the command- line, like > and |.
PowerShell and CMD each have their own sets of special characters and methods to handle them.
What were you using? And what was the error message you got?

You can also search the forum. Lots of examples how to handle this.
wetware05
Posts: 13
Joined: Wed Dec 21, 2022 5:09 pm

Re: Complex search from command line.

Post by wetware05 »

hi, NotNull.

The message I get is: "The system cannot find the path specified".

Can you give me an example to search only in two directories (more than one, since I don't know how to isolate or chain several directories in a search) and that it be in mp4 files from the last two days? I've searched the forum but there should be a section for es.exe as ideas get mixed up and I can't figure out how to do the search I need.

Sorry, I'm using CMD.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Complex search from command line.

Post by NotNull »

Based on your original search:

Code: Select all

es dm:^>=11/04/2023 ext:mp4 I:\Tutor\ ^| H:\Temp ^| M:\Temp01 ^| F:\Temp02\ -export-txt t:\files.txt
(use a ^ to 'neutralize' (/escape) these special characters


P.S. you can also use
dm:last2days


Date Constants
wetware05
Posts: 13
Joined: Wed Dec 21, 2022 5:09 pm

Re: Complex search from command line.

Post by wetware05 »

Perfect, NotNull, it works. Thanks a lot. Knowing that ^ is the escape symbol for special symbols, I now understand how to create searches. :P

Interesting about the constants the dates!!!
Last edited by wetware05 on Thu Apr 13, 2023 7:18 pm, edited 1 time in total.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Complex search from command line.

Post by NotNull »

:thumbsup: :D
Post Reply