Forums - C# Corner

Forum guidelines
Lars K

Lars K

  • 0
  • 0
  • 0

Folder monitoring - need to exclude changed folder from monitoring while performing actions

Feb 15 2012 7:38 PM
Hi guys,
Don't know if the subject was any good, but...I have a bunch of folders I monitor using FileSystemWatcher. When files change in a folder I need to do some processing on the remaining files - which means I will change the folder. This results in a loop going on until the buffer is full or something.

Is there a way to stop monitoring just this folder, or even this folder+subfolders, while working on it? I cannot stop monitoring the other folders in the tree as they might change in the mean time (which would mean I would have to scan the whole tree again.

Any solution would be greatly appreciated! Cheers! :)

Answers (2)

C# Corner Chandigarh Developer Conference

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.