Lost in command line options of es.exe

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
larifari
Posts: 7
Joined: Sat May 02, 2020 9:27 am

Lost in command line options of es.exe

Post by larifari »

Hi!

This one works pretty well for me in Everything GUI:

Code: Select all

\\nas\images\*<!\.><.xmp|pic:><dm:last10days>
  • "\\nas\images\*" all files in this path
  • "<!\.>" except all subfolders starting with a dot
  • "<.xmp|pic:>" only xmp files and images
  • "<dm:last10days>" only files modified within the last ten days
Any ideas for command line options for this? These brackets make me crazy :?

I want to create *.lnk shortcut files for each found file in a single temp folder.


Thanx for reading, Larri
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Lost in command line options of es.exe

Post by Stamimail »

I want to create *.lnk shortcut files for each found file in a single temp folder.
I'm not sure I understood you correctly,
but if the results in GUI are OK, try to copy them (Ctrl+C), and paste them in your desired location by: Paste shortcut
Image
larifari
Posts: 7
Joined: Sat May 02, 2020 9:27 am

Re: Lost in command line options of es.exe

Post by larifari »

Hi!

Thanx stamimail for your feedback, I am aware of this feature and already tried it, but things are a bit more complicated.
I often get over 5,000 items in the GUI, to many for CTRL-A, CTRL-C, or drag'drop operations on my desktop.
I also want to run es.exe in a .cmd and have the whole job done with just one double click.
In addition <dm:last10days> is just a sample, the actual value will be read and calculated from a config file.


Thanx for reading, Larri
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Lost in command line options of es.exe

Post by NotNull »

Code: Select all

\\nas\images\*<!\.><.xmp|pic:><dm:last10days>
First of all:
filter macro's are not really a part of the core of Everything (they are in Filters.csv) and can't be used directly in ES.exe.
Instead,you have to expand them manually:
- Go to Menu:Search > Organize Filters
- Double-click Pictures
- Copy whatever is in the Search field (on my system: ext:ani;bmp;gif;ico;jpe;jpeg;jpg;pcx;png;psd;tga;tif;tiff;wmf )
- replace pic: with what you copied.
In this specific case, you can add .xmp too:

Code: Select all

ext:xmp;ani;bmp;gif;ico;jpe;jpeg;jpg;pcx;png;psd;tga;tif;tiff;wmf

Second:
Some characters have special meaning on th command prompt. They have to be preceded by CMD's escape character "^", so
es.exe <dm:last10days> would become es.exe ^<dm:last10days^>
Type ES.exe /? to find out which characters need to be escaped (last line of the help text).
Note: Escaping the "\" is not needed in CMD.


Third:
You don't need all the "<" and ">". This should do fine:

Code: Select all

\\nas\images\*   ext:xmp;ani;bmp;gif;ico;jpe;jpeg;jpg;pcx;png;psd;tga;tif;tiff;wmf   dm:last10days 

With all that, this should do (not tested)

Code: Select all

\\nas\images\   !\.   ext:xmp;ani;bmp;gif;ico;jpe;jpeg;jpg;pcx;png;psd;tga;tif;tiff;wmf   dm:last10days 

Note:
If you use SETLOCAL ENABLEDELAYEDEXPANSION in your script, "!" has a special meaning too (it is used to indicate a variable).
If that is the case, that can be "fixed" too.
larifari
Posts: 7
Joined: Sat May 02, 2020 9:27 am

Re: Lost in command line options of es.exe

Post by larifari »

Hi!

Thank's a million NotNul, this anwers it all. Works like a charm and also gives hints how to go on.

Thank's again, larri
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Lost in command line options of es.exe

Post by NotNull »

You're welcome!
Post Reply