Link to home
Start Free TrialLog in
Avatar of Rstorer
Rstorer

asked on

Printing All PDFs in a directory

Hello,

I would like to be able to reliably print all the PDFs in a directory using a batch file.  My previous attempts have had... limited success.  Currently, I have a simple batch file that looks something like this:

print /d:\\Server2000\printer \\Server2003\c$\PDFfolder\*.pdf

one will always print and I might get two if I'm lucky.  Do I need to change this into a for loop?  If so, how do I do that? or is there another method I don't see? I will be running the batch file on a Windows 2000 Advanced Server machine.  The files are stored on a Windows Server 2003 machine.

Any help with be greatly appreciated.

ASKER CERTIFIED SOLUTION
Avatar of WelkinMaze
WelkinMaze

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Pfister
I wonder how you can print PDFs with a print command. The Print command just sends the plain file to the printer without any processing so this would mean the printer is able to understand/interpret Adobe PDF?!

Here is how I would do it:
Install Adobe Reader current version
Create a batch with the following content:

For %%I in (\\Server2003\c$\PDFfolder\*.pdf)  "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" /p /h "%%I"

You might have to modify the path to the executable according to your installation.

or look at this info (haven't tried this) http://www.planetpdf.com/forumarchive/49365.asp

Hope it helps,

Michael
Avatar of Rstorer
Rstorer

ASKER

Thank you both for your help.  I awarded points to WlkinMaze since I had no problems printing PDFs with just the PRINT command.

  -Rob
Hi Rstorer,

I'm glad it works for you.:)

Since I see you have not much experience here, you can read this section of the site's help about grades.
Here it is - https://www.experts-exchange.com/help.jsp#hi73

Just for info: If a solution works for you without problems it is normal to give a grade of A.