Solved

Windows watch folder dealing with multiple new files

Posted on 2016-07-29
1
23 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 …
This article will help you understand what HashTables are and how to use them in PowerShell.
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 is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 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

17 Experts available now in Live!

Get 1:1 Help Now