Accounts Payable
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi there,
I'm glad you found a solution, I will look at why my script didn't work for my own curiosity.
I'm glad you found a solution, I will look at why my script didn't work for my own curiosity.
ASKER
My answer is what I was looking for. jawa29 did help with ideas for me to get there.
ASKER
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?