Windows watch folder dealing with multiple new files

Michael Gray
Michael Gray used Ask the Experts™
on
I am using powershell FileSystemWatcher to watch a folder for new files. On new file, it removes file from folder, imports data and processes it into a PDF. It works, but it crashes if a file appears in the folder while a previous file is still being processed. Is there a way to queue the files and process them one at a time?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Co-Founder and Chief Architect
Top Expert 2016
Commented:
If you need help with code, it would be helpful to see said code.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial