FileSystemWatcher watch multiple directories?

  • Thread starter Thread starter SoxFan44
  • Start date Start date
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!
 
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!
 
Back
Top