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

Thread: Continues Monitoring Files

  1. #1
    Join Date
    May 2009
    Posts
    11

    Continues Monitoring Files

    Hi,

    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
    Location
    Sweden
    Posts
    3,632

    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
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  3. #3
    Join Date
    May 1999
    Location
    DELAWARE, USA
    Posts
    9,915

    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
    Posts
    1,778

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center