Command line search and open
Posted: Thu Oct 10, 2019 8:00 am
Hi
I can't figure out how to open a pdf once I search for it on the command line. Example:
So now I want to open this .pdf file from the command line, how would I do that? Any suggestions would be appreciated.
Edit: To explain what I'm going for here.
I'm highlighting a string in a different program, then using autohotkey to trim the string, search it in everything, and opening the result. This involves a lot of "sleep" timers and doesn't always work out perfectly. I'm trying to do this without opening and focusing everything to avoid the sleeps so I want to try the Everything command line. Perhaps there is an easier way to approach this?
I can't figure out how to open a pdf once I search for it on the command line. Example:
Code: Select all
-Command prompt-
R:\>es.exe z: *.pdf -highlight searched-file-name
Z:\searched-file-name-and-some-numbers.pdf
Edit: To explain what I'm going for here.
I'm highlighting a string in a different program, then using autohotkey to trim the string, search it in everything, and opening the result. This involves a lot of "sleep" timers and doesn't always work out perfectly. I'm trying to do this without opening and focusing everything to avoid the sleeps so I want to try the Everything command line. Perhaps there is an easier way to approach this?