Hi my name is ***** ***** I may be able to assist. Are you just saving the PDFs manually to a share then you want the PDFs to print to a printer based on a scheduled task? What is the make and model of the network printer that you are tying to send the PDFs to?
Ok, let me work something up for you test. It might be a little while before my response so bare with me. Is it OK if after the PDF is printed, the file is then moved to another folder in the same directory called "Printed" or something along those lines?
Ok great! Give me a few minutes and I'll get back to you.
Ok, this should get you going. I would highly recommend running this on the server where the share is hosted to you can use the local path to the folder. If you are using a network path, Windows 7 or higher blocks the ability to mount a network path through the command line and you have to set a reg key to bypass that protection.
Make sure you set the variables to your environment and add a "Printed" folder to the directory containing the PDFs.
set DOCFullPath= The path to the PDF files.set Acrobat="C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" - Make sure that this path matches your version and change accordingly.Printer= "The full name of the printer you want the PDFs to print to"
Here is the contents of the batch file. Save it into a file called printPDF.bat or something familiar to you.
You'll then create a Scheduled Task where the .bat file resides to run at the times you specify.
REM Define paths and settings for scriptset DOCFullPath=C:\PDFset Acrobat="C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"set Printer=4730
REM Process all files within the folder that have not already been processedfor /F "tokens=*" %%1 IN ('dir /a-d /b "%DOCFullPath%\*"') do (REM End the PDF print programstart cmd /c "timeout 3 & taskkill /f /im acrord32.exe"
REM Print document%Acrobat% /n /s /o /h /t "%DOCFullPath%\%%1" "%Printer%"
REM Rename file to indicate processedmove "%DOCFullPath%\%%1" "%DOCFullPath%\Printed\%%1")
Let me know if you have any more questions. Also, when your are ready to accept my answer, please rate my service with a positive rating of 3 or better with the rating system below.
The open parenthesis is right after the DO command higher in the script.
You can just reply to this question with any of the e-mails you've received from JustAnswer.com. I'll see it come up in my queue if you have my questions pertaining to this issue.
Thanks for the update. Take your time and I'll be here to answer any questions.
Just checking in to see if the batch script worked for you.