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)

Download Free eBooks

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.