Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Service at Regular intervals?

Status
Not open for further replies.

jambai

Programmer
Mar 21, 2007
58
US
Hi

How to start a windows service that only needs to run once a day (say I would like to run the service every day midnight at 12.00) to synchronies the SQL database with Dataflex.

Thanks
Jambai
 
It shouldn't be a service at that point. You should just schedule an executable with scheduled tasks and ahve it run at that time.

____________ signature below ______________
You are a amateur developer until you realize all your code sucks.
Jeff Atwood

 
If you want to run the application as a service and then shut itself down after completing you can always use a scheduling program with the following command to start your service.

Code:
net start "My Service Name"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top