471,122 Members | 1,180 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

FileSystemWatcher with multiple folders

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

May 4 '07 #1
1 2646
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"D2" <dh*****@gmail.comwrote in message
news:11**********************@u30g2000hsc.googlegr oups.com...
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

May 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Michael Stanbrook | last post: by
1 post views Thread by Ryan Rogers | last post: by
1 post views Thread by Terry | last post: by
2 posts views Thread by kmcnet | last post: by
reply views Thread by Li Pang | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.