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.
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\
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
-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.
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.
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
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