Command Line to generate Filelist

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Scheppi
Posts: 6
Joined: Wed Feb 20, 2013 9:57 pm

Command Line to generate Filelist

Post by Scheppi »

Hi there,
i really like everything and still use the old 1.2.x Version to generate a List of my Files on my Harddrives.

I use a task, which starts the Command Line Tool es.exe with parameters like: es -s -p c: > filelistc.txt

This doesnt work anymore with the new 1.3.x Version.
Is there any command line / batch possibility to generate such fast filelists? (which is much faster than a simple dir /s c: > filelist.txt)

Any Ideas/Help?

Thanks in advance!
void
Developer
Posts: 16690
Joined: Fri Oct 16, 2009 11:31 pm

Re: Command Line to generate Filelist

Post by void »

es -s -p c: > filelistc.txt
This should work with 1.3.x.
es.exe requires the same privileges as Everything to communicate.
Please make sure the command prompt is run as Administrator if you are running Everything as Administrator.

Exporting is MUCH faster, although you have to do this manually.
To export to a file list:
  • In Everything, type in your search c: and sort by path
  • From the File menu, click Export.
  • Change Save as type to Text Files.
  • Type in a filename and click Save.
Scheppi
Posts: 6
Joined: Wed Feb 20, 2013 9:57 pm

Re: Command Line to generate Filelist

Post by Scheppi »

ah, okay, my fault. I closed the Everything.exe, i just had the service running.
you are right, es.exe works fine here (as before)

Exporting would be an option, but for my purpose i perodically create this filelists with a batch,
maybe i should have a look at an autoit/ahk script :)

Thanks for your help
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Command Line to generate Filelist

Post by vsub »

Here's something simple in AHK
Send,place here the hotkey you use to bring the Everything window
WinWait,ahk_class EVERYTHING
Sleep,30
ControlSetText, Edit1, C:\,ahk_class EVERYTHING
PostMessage,0x111,40012,,,ahk_class EVERYTHING
WinWait,Export result list file:
ControlSetText, Edit1, place the path and name of the file to be saved here,Export result list file:
ControlClick,Button2,Export result list file:
WinWaitClose,Export result list file:
WinClose,ahk_class EVERYTHING
ExitApp
Scheppi
Posts: 6
Joined: Wed Feb 20, 2013 9:57 pm

Re: Command Line to generate Filelist

Post by Scheppi »

thanks alot, iam not that deep into ahk, but this gives me a good starting point!

Thanks for your help!
Scheppi
Posts: 6
Joined: Wed Feb 20, 2013 9:57 pm

Re: Command Line to generate Filelist

Post by Scheppi »

AHK Script works fine, but now i played with command line options of everything again and i found:

-create-filelist <filename> <path> Create a file list of a path.

But it doesnt seem to work here..

everything.exe -create-filelist test.efu c:\

gives me no output at all.

Any idea?
void
Developer
Posts: 16690
Joined: Fri Oct 16, 2009 11:31 pm

Re: Command Line to generate Filelist

Post by void »

There is no output displayed to the console when using the -create-filelist command line option.

Is the test.efu file created?
Scheppi
Posts: 6
Joined: Wed Feb 20, 2013 9:57 pm

Re: Command Line to generate Filelist

Post by Scheppi »

ah okay.. nvr mind, just saw it just took like 2 mins till the File was created.

Dont know why it takes that long, but as its not time critical for me, its ok.
Just wondered before that no file was created during the process, it just "appears" when its finished.
void
Developer
Posts: 16690
Joined: Fri Oct 16, 2009 11:31 pm

Re: Command Line to generate Filelist

Post by void »

Creating a filelist will take a few minutes...

The filelist is built in memory before being saved to disk.

Once the filelist has been created the Everything process will return.
Scheppi
Posts: 6
Joined: Wed Feb 20, 2013 9:57 pm

Re: Command Line to generate Filelist

Post by Scheppi »

ok,
as i said, its not time critical for me, so i can use it at night for some batch script.
(besides the ahk script above works fine, too for me)

Thanks for your fast response and keep up the good work
Post Reply