Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a folder with quite a few pdf reports in it that I would like to setup to print automatically using the Task Scheduler in Windows and command lines to open adobe, the specific files, and then print them all. The problem I keep running into is that when I just print it gives useless sheets of paper with garbage on them. If I open adobe, as stated above, then open the files and then print them, it will only open the first in the list when I use the *.pdf to indicate all pdf files. Even after closing that first one it won't open the subsequent ones. Any idea as to how to get it to open and print all of them?

Here is the current command line that I am attempting to use:

start acrord32.exe /n /t "H:\My Analyzer\PDF - Excel\Physician Monthly Reports\*.pdf"
share|improve this question
    
​lp -- *.pdf​ –  Ignacio Vazquez-Abrams Oct 28 '10 at 18:39
add comment

2 Answers 2

up vote 1 down vote accepted

If you can print one using the command line parameters, then to print them all you create a batch file like

for %%f in (*.pdf) Do start acrord32.exe /n /t %%f

See here for more info on for

share|improve this answer
    
Thank you. This worked great!! –  ThaddeusTG Oct 29 '10 at 1:16
add comment

This question over at Stack Overflow may help:

Adobe Reader Command Line Reference

Looks like for starters you need to pass the driver and portname to the /t switch.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.