do things at certain times

jasonseay

Freshman
Joined
Jun 17, 2003
Messages
29
i need to send a status report email at 700 am and 700pm
how can i do this without having a timer check every second to see if the time = 700.
 
reply

the is going to run as a windows service and it will continually keep track of the values of certain controls and then send out emails everyday with a status report.
 
That's fine. Using Sheduled Tasks is still the proper way of accomplishing this task.
Code:
application.exe /report
Run your application with a similar command line, which in turn notifies the currently running service to generate a report. You can communicate between the two instances of your application using Windows Sockets which is the method used by Microsoft and other vendors.

Then again, if you choose not to use Scheduled Tasks, you'll be forced into polling the system time, which I believe is what you were trying to get away from.
 
Back
Top