Page 1 of 1

Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 1:15 am
by DJ.LJ
Hello!

I am trying to find a way to search then export via command line.

Here is my command line I am using now to search

C:\Program Files\Everything\Everything.exe -s "search term|search term2"

I then have to click file -- export

I would like to do that search and specify where it gets saved all within the command line without clicking anything.

Thanks!

LJ

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 2:20 am
by therube

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 4:07 am
by DJ.LJ
Yes.. I saw that and I don't really get it. I tried and it did not work for me.

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 8:59 am
by horst.epp
DJ.LJ wrote:Yes.. I saw that and I don't really get it. I tried and it did not work for me.
What means "did not work for me" ?
What are you doing (step by step) and what are the errors ?

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 5:50 pm
by DJ.LJ
I guess what I am saying is... I don't know how to do it.

Could you give me an example using the command line that I am currently using? Using multiple search terms?

Thank you.

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 6:17 pm
by DJ.LJ
Ok.. I figured out the basic command.

es.exe -s "bottoms up" > test.txt

This will search one term "bottoms up"

How would I search multiple terms at once? like...

bottoms up
no scrubs
cat daddy

In the full app I just put a | in between each term.

Also.. How do I limit to only search certain drives and filetypes? Maybe using filters like I do now? How would I call that using es.exe?

Are these the only commands available?

Code: Select all

    -r Search the database using a basic POSIX regular expression.
    -i Does a case sensitive search.
    -w Does a whole word search.
    -p Does a full path search.
    -h --help Display this help.
    -n <num> Limit the amount of results shown to <num>.
    -s Sort by full path.
thank you!

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 6:28 pm
by DJ.LJ
Ok.. figured out the search only certain drives. You just select them in the main app.

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 6:53 pm
by DJ.LJ
I did it!

es.exe -r (bottoms.up.*mp(3^|4)^|no.scrubs.*mp(3^|4)^|cat.daddy.*mp(3^|4)) > test.txt

Hopefully this helps someone else out.

-r .. just use regex and tie it all together.

Re: Search .. then Export to txt via Command Line

Posted: Thu Mar 12, 2015 7:22 pm
by therube
> certain drives

es.exe c: bottoms up

> filetypes

es.exe c: bottoms up ext:zip;rar

> multiple terms

Oh, not sure about that?
Though if nothing else you could run two separate command; either on one line or two.

es.exe c: bottoms up
es.exe c: no scrubs

or

es.exe c: bottoms up && es.exe c: no scrubs

If you didn't want to search for "twin cheeks", you could search for one cheek, duplicated ;-).

es.exe cheek dupe:


(I see you've got it.
Surprised that (Windows) CMD doesn't fart with the command line causing unwanted interactions.
)