简体   繁体   中英

How can I write a command that opens several specific pdf files on my PC at the same time using a key phrase

For work, I often have to have 5-6 specific pdfs open on my computer at any given time. It can get rather tedious to open all of them and it would be much easier to have a command like ctrl-shift-F that would open all of them up at once. I do not know much about this kind of coding, I know a lot of MATLAB, and some Python, but was hoping someone could point me in the right direction in what to do.

This software good fine https://www.autohotkey.com

or

Use start:

start acrord32.exe 1.pdf
start acrord32.exe 2.pdf
start acrord32.exe 3.pdf

Or even:

start 1.pdf
start 2.pdf
start 3.pdf

Would probably work as well (depending on your default PDF viewer).

Note that when using start you have to be careful when using quoted arguments, as the following won't work (the first quoted argument is interpreted as the title for a new console window):

start "1.pdf"

Instead you'll have to do the following:

start "" "1.pdf"

It's an annoying quirk of start, but you have to effectively supply a dummy title in this case to properly open the specified file (even though the title is unnecessary as this won't create a new console window).

A list of other available batch commands.

Best regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM