-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Vinil
Message 3 in Discussion

Hi,
It is tricky to schedule Windows services with Task Scheduler. I would 
suggest, a simpler option would be to recompile your app as a regular 
Windows Application (i.e a Non windows service) and then employ the services 
of Task Scheduler. Move the existing db read and mail send portions into a 
windows app, and then create a schedule using the Task Scheduler.
OR, if you have your reasons in going ahead with a Service based approach, 
then its just a matter of attaching to the right events (i.e. the service 
could read the schedule from an XML file and regularly poll the time, or 
hook to time events (similar to what task scheduler does internally) and do 
the db and email tasks.

Again, the service approach is very involved, and coding the time logic is 
not the simplest of tasks. Moreover, making it a service has two other 
caveats, 1) the service should be in the "started" state
2) the appropriate security role would have to be considered. In general, 
always go for a service only if fine-grained control is mandatory.

Just as an aside: If you are sticking to regular db calls and smtp calls, 
even a plain VBScript would do the trick.

Hope that was helpful,
Regards,
Vinil

_________________________________________________________________
Post Classifieds on MSN classifieds. http://go.msnserver.com/IN/44045.asp 
Buy and Sell on MSN Classifieds.



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to