how do I get filesystemwatcher to watch the subdirectories?

Posted on 2012-09-18
Last Modified: 2012-09-18
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.
Question by:rxresults
    LVL 83

    Accepted Solution

    For subfolders, set IncludeSubDirectories to true

    It raises event for each file.

    Author Closing Comment

    Thanks.  That was too obvious.

    Author Comment

    One last thing can this handle multiple files coming through at a time?

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now