Is there a way to use on FileSystemWatcher object to watch both a certain type of file and all folders or do you have to use two FileSystemWatcher objects to do that
Also, if two are necessary, how would you go about having both of those work on different threads (I'm pretty new to threading)
Many Thanx! :)

FileSystemWatcher
Sauvere
well, i was just asking about using two different threads, because i'm kinda clueless :p
I was just wondering if having two FileSystemWatchers is going to be efficient or if there's a better way
thanx for your help :)
vincent.wang
Dmitry Lysenko
2) I'm not sure I understand your question Obviously this monitoring is handled by the operating system and I'm not exactly sure how it is handled internally. If you're asking how to monitor *from* different threads, that's a bit closer to home and I could help you out their. Let me know.
mjepsen
Me.FileSystemWatcher1.SynchronizingObject = Me
to the code. If you create the instance in code, and don't set this property, and need to write to a WinForm from an event handler, you could have trouble unless you switch to the form's thread before doing so. That's what the SynchronizingObject property does.
This is the only issue I can think of where you can control threading behavior with this class, however! -- Ken
Johodefo