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

Thread: Monitor Program

  1. #1
    Join Date
    Apr 2002
    Location
    Mumbai,India
    Posts
    567

    Lightbulb Monitor Program

    Hi Friends

    I am trying to develop an application which do the following things:
    1>It keep monitoring a particular folder for any new file(normally a word file)
    2>As soon as the app founds a new file in this particular folder,the same application sends mail to assigned person.

    I am looking forward for all suggestions/views that can help me in this application.
    Hope you would help me

    Thanks
    Vishal

  2. #2
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128

    Re: Monitor Program

    On Windows, you can use FindFirstChangeNotification(), FindCloseChangeNotification(), FindNextChangeNotification() and WaitForSingleObject().

  3. #3
    Join Date
    Apr 2002
    Location
    Mumbai,India
    Posts
    567

    Re: Monitor Program

    Thanks Kheun
    I will try to work with these...
    And how could i sent mail to assigned person..??
    Vishal

  4. #4
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128

    Re: Monitor Program

    Quote Originally Posted by VishalNikiSharma
    Thanks Kheun
    And how could i sent mail to assigned person..??
    Sorry, I don't get what you mean?

  5. #5
    Join Date
    Apr 2002
    Location
    Mumbai,India
    Posts
    567

    Re: Monitor Program

    I am sorry i was not clear enough...
    I mean that if i find a file in the particular folder...i want to send a email to some list of person...
    so could u please guide me.....
    thanks
    vishal

  6. #6
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: Monitor Program

    There are several third party free classes available to send emails. See www.codeguru.com and/or www.codeproject.com.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured