Continues Monitoring Files
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 4 of 4

Thread: Continues Monitoring Files

  1. #1
    Join Date
    May 2009

    Continues Monitoring Files


    I need some help.

    I will like to monitor files in a specific folder.

    The concept is whenever a file is added/created inside a folder. It will send an alert or notification.
    The monitoring is a continues process once I build the code.

    Is there any examples for me to look at it or do I need to write it in other programming language?

    Currently, using Visual C++.

    Thanks whoever can help.

  2. #2
    Join Date
    Oct 2006

    Re: Continues Monitoring Files

    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    and before posting

    Refresh your memory on formatting tags here

    Get your free MS compiler here

  3. #3
    Join Date
    May 1999

    Re: Continues Monitoring Files

    Depending on your needs you may consider using one of the WMI classes: CIM_DirectoryContainsFile or CIM_DataFile. It requires some experience in using COM interfaces.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  4. #4
    Join Date
    Nov 2003

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)