Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Mar : need input on a TServiceApplication
| Subject: | need input on a TServiceApplication |
| Posted by: | "Dixon Epperson" (edeppers..@insightbb.com) |
| Date: | Thu, 3 Mar 2005 20:20:05 |
I have an application that needs to run at a specified time everyday. (I
would like to have a user interface so that time could me adjusted, but
there are other ways to set it if that isn't possible)
Up to this point, I've been using a simple exe and the scheduler in the
control panel to accomplish this, but there are a couple of obvious problems
with that approach.
There is a dependancy issue here, the firebird service needs to be running
before this one does.
And if the machine is off at the time it is supposed to run, then I will
want it to run when the machine is first turned on. Actually, I am already
accomplishing this on the exe by checking a log file to see if we have run
yet..
A summary of my questions, in order of importance
1) Any good books/resources/website on writing TServiceApplications
2) How do I program the dependancy? Or do you register it with Windows with
the dependancy?
3) How do I control the time it is run? Use an internal clock, or can I
register it with windows with the time to run. After it runs once a day, I
would like to have it unload so that its not hogging resources.
E. D. Epperson jr.