Solved

Windows watch folder dealing with multiple new files

Posted on 2016-07-29
1
24 Views
Last Modified: 2016-09-03
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?
0
Comment
Question by:Michael Gray
1 Comment
 
LVL 12

Accepted Solution

by:
Dustin Saunders earned 500 total points
ID: 41734685
If you need help with code, it would be helpful to see said code.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now