Click to See Complete Forum and Search --> : Monitor Program


VishalNikiSharma
January 16th, 2005, 10:38 PM
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

Kheun
January 16th, 2005, 11:17 PM
On Windows, you can use FindFirstChangeNotification(), FindCloseChangeNotification(), FindNextChangeNotification() and WaitForSingleObject().

VishalNikiSharma
January 16th, 2005, 11:42 PM
Thanks Kheun
I will try to work with these...
And how could i sent mail to assigned person..??
Vishal

Kheun
January 17th, 2005, 01:05 AM
Thanks Kheun
And how could i sent mail to assigned person..??
Sorry, I don't get what you mean?

VishalNikiSharma
January 17th, 2005, 02:37 AM
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

Marc G
January 17th, 2005, 06:43 AM
There are several third party free classes available to send emails. See www.codeguru.com and/or www.codeproject.com.