Search .. then Export to txt via Command Line

General discussion related to "Everything".
Post Reply
DJ.LJ
Posts: 7
Joined: Sat Sep 20, 2014 12:29 am

Search .. then Export to txt via Command Line

Post 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
DJ.LJ
Posts: 7
Joined: Sat Sep 20, 2014 12:29 am

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

Post by DJ.LJ »

Yes.. I saw that and I don't really get it. I tried and it did not work for me.
horst.epp
Posts: 1332
Joined: Fri Apr 04, 2014 3:24 pm

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

Post 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 ?
DJ.LJ
Posts: 7
Joined: Sat Sep 20, 2014 12:29 am

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

Post 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.
DJ.LJ
Posts: 7
Joined: Sat Sep 20, 2014 12:29 am

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

Post 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!
DJ.LJ
Posts: 7
Joined: Sat Sep 20, 2014 12:29 am

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

Post by DJ.LJ »

Ok.. figured out the search only certain drives. You just select them in the main app.
DJ.LJ
Posts: 7
Joined: Sat Sep 20, 2014 12:29 am

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

Post 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.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

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

Post 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.
)
Post Reply