I wish to print multiple PDF files in an alphabetical order,
these files are the lecture notes from MitOpenCourse 😀
but "right click – print" option only seems to print them out in a random order.
So I tried to use a commandline using the following reference:
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/intro_to_sdk/DeveloperFAQ.pdf
(Page 27)
for %%X in (*.pdf) do "C:\Program Files\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /t %%X "\E06-02-4321\HP Officejet 7110 series"
So this is what I wrote in the batch file. But it does not seem to work.
When I run the batch all it does is it opens up a acrobat reader and that's it.
The printer I am using – as you can see is HP Officejet 7110 and E06-02-4321 is my computer name.
I tried using echo and pause in the batch but it does not show any errors.
Help would be appreciated!
Chris
Best Solution
IMHO the four parameters of the
/t
option are obligatory (not facultative) ones; hence, supply them as follows:Get actual values from
wmic path Win32_Printer get caption, drivername, portname
command or even fromwmic path Win32_Printer get /value
(scriptable using two nestedfor /F
loops againstwmic
output).