Print PDF from cammand line in Windows

So, you have a directory full of PDF files. You want to send them all automatically to the printer from the command line.
Create a text file, name it print.bat and enter the following, replacing the provided printer name with the actual name  of your printer:

for %%f in (*.pdf) do AcroRd32.exe /n /t %%f "BROTHER HL2135W"

Running print.bat will open Adobe Acrobat Reader and send each of the PDF files in the directory to the printer.
Of course, you need to have Acrobat Reader installed.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s