• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1795
  • Last Modified:

how do I get filesystemwatcher to watch the subdirectories?

I have a filesystemwatcher that watches a directory but I need it to also monitor the sub directories.  How can I get it to do that and also can this handle multiple files at once?

Thanks in advance.
0
rxresults
Asked:
rxresults
  • 2
1 Solution
 
CodeCruiserCommented:
For subfolders, set IncludeSubDirectories to true

http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.includesubdirectories.aspx

It raises event for each file.
0
 
rxresultsAuthor Commented:
Thanks.  That was too obvious.
0
 
rxresultsAuthor Commented:
One last thing can this handle multiple files coming through at a time?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now