Link to home
Start Free TrialLog in
Avatar of Accounts Payable
Accounts PayableFlag for United States of America

asked on

Scheduled process to print and delete

Hello,

Is there a way to monitor the contents of a folder (PDF files) on a scheduled task to print to a printer and delete (the file) after successful print? The line of business will dump PDF reports into a folder - I want a scheduled task to monitor this folder, print, and delete.

Thoughts?

Thanks.
SOLUTION
Avatar of jawa29
jawa29
Flag of United Kingdom of Great Britain and Northern Ireland image

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 Accounts Payable

ASKER

jawa29 - thanks much for your response.

I used your script but unfortunately it neither prints not deletes the files. I've added to display msgbox each step of the script and it hits all the loops and captures file name etc. The Err.Number value returned is also 0, however, nothing prints not deletes. Any thoughts?

Also, is it possible to specify the printer as well?
Also, I do get "There was an error opening this document. This file cannot be found." error message when I run the script and it launches Adobe Reader.User generated image
ASKER CERTIFIED SOLUTION
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
Hi there,

I'm glad you found a solution, I will look at why my script didn't work for my own curiosity.
My answer is what I was looking for. jawa29 did help with ideas for me to get there.