FileSystemWatcher with multiple folders

  • Thread starter Thread starter D2
  • Start date Start date
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
 
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.
 
Back
Top