Forums - C# Corner

Forum guidelines
Lars K

Lars K

  • 0
  • 14
  • 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)

Unlimited Flat-Free License


File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!