es.exe with regex from JScript
Posted: Tue Mar 21, 2017 12:54 am
I am using a JScript to run a query using es.exe and writing the output to a temp file. When I execute the following non-regex query..
es.exe -export-txt C:\Users\Me\AppData\Local\Temp\es.txt thunderbird.exe
..the expected output is written correctly to the es.txt temp file. However, when I use the -r option to introduce regex into the mix...
es.exe -r -export-txt C:\Users\Me\AppData\Local\Temp\es.txt thunderbird.exe
..nothing is written to the temp file. Executing exactly the same regex query from a DOS command line works just fine.
Any idea what I might be doing wrong?
Regards, AB
es.exe -export-txt C:\Users\Me\AppData\Local\Temp\es.txt thunderbird.exe
..the expected output is written correctly to the es.txt temp file. However, when I use the -r option to introduce regex into the mix...
es.exe -r -export-txt C:\Users\Me\AppData\Local\Temp\es.txt thunderbird.exe
..nothing is written to the temp file. Executing exactly the same regex query from a DOS command line works just fine.
Any idea what I might be doing wrong?
Regards, AB