We help IT Professionals succeed at work.

Windows watch folder dealing with multiple new files

Michael Gray
Michael Gray asked
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

Co-Founder and Chief Architect
Top Expert 2016
Commented:
If you need help with code, it would be helpful to see said code.