T
Terry Holland
Im looking for some advice on the best direction to go in.
I have the need for a function to be run at a set time each night. This
function will be run on a machine that will have no-one logged on at the
time
this function will run. The alternatives that Im considering are
1) Create a windows service. Have a timer control in this service and set
the interval to 24 hour and have the function being called on the
Timer1_Tick
event
or
2) Create a app (which type?) that will be executed using a Scheduled Task
What im not sure about is
1) Ive never created a servioce before so Im not sure if I can schedule this
to run atspecific time of day or whether I shouyld use a timer control
2) Not sure what type of app to create so that I can run it from scheduled
task without anyone logged on to machine.
Could someone please advise. Some example code would be helpfull.
Terry Holland
I have the need for a function to be run at a set time each night. This
function will be run on a machine that will have no-one logged on at the
time
this function will run. The alternatives that Im considering are
1) Create a windows service. Have a timer control in this service and set
the interval to 24 hour and have the function being called on the
Timer1_Tick
event
or
2) Create a app (which type?) that will be executed using a Scheduled Task
What im not sure about is
1) Ive never created a servioce before so Im not sure if I can schedule this
to run atspecific time of day or whether I shouyld use a timer control
2) Not sure what type of app to create so that I can run it from scheduled
task without anyone logged on to machine.
Could someone please advise. Some example code would be helpfull.
Terry Holland