FileSystemWatcher with multiple folders

D

D2

Hi All,

I'm just wondering whether a FileSystemWatcher object can be used to
monitor multiple directores or we have to create one FileSystemWatcher
object for each folder we need to monitor?

I want to monitor multiple folders like:

c:\windows
c:\my docs
d:\my pictures

etc.

Thanks,
D2
 
N

Nicholas Paldino [.NET/C# MVP]

D2,

If all you had to do was monitor sub directories, then no, you could use
one FileSystemWatcher for this. However, you need multiple
FileSystemWatchers in this case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top