FileSystemWatcher watch multiple directories?

S

SoxFan44

Hi,
What's the best way to watch several directories (not sub dirs) with
FileSystemWatcher? Should I create an array of them, vector, or something
else? Also, performance-wise, how many directories can I watch on a decent
computer, say low P4 512 MB RAM? Thanks!
 
S

Siva M

You have to use multiple FileSystemWatcher instances.. On the performance
side, I think as long as you don't load up the instances with too many
sub-folders and complex wildcard filters, it should be OK.

Hi,
What's the best way to watch several directories (not sub dirs) with
FileSystemWatcher? Should I create an array of them, vector, or something
else? Also, performance-wise, how many directories can I watch on a decent
computer, say low P4 512 MB RAM? Thanks!
 

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