multiple FileSystemWatchers to monitor files on local system?

Posted by Jason Crowes on Stack Overflow See other posts from Stack Overflow or by Jason Crowes
Published on 2010-05-29T06:56:35Z Indexed on 2010/05/29 7:02 UTC
Read the original article Hit count: 250

We're writing a text editor like tool for our internal accounting package system that has actions that can be done by our own Xml language specs. These macro commands are specified in Xml files and we need the ability to monitor if files openned have bean modified externally.

The only problem is that there maybe 20-30 files with different paths openned at any one time. Would it be good to use multiple FileSystemWatchers for this scenario? Or would it be better to monitor the root drive and catch specific events that match an open file in the editor (though lots of events could be raised).

Some are local drives (C,D,E) others are their network drives (U,X,G,H). Files are quite chunky too about 300-400Kb.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows