application run automatically at specific time

puneet_pr

New member
Joined
Nov 12, 2012
Messages
1
Programming Experience
1-3
i develop 1 application, with this application i am fetching data from 1 SQL server database table to another database table. By clicking button. i want this application run automatically at specific time
 
Hi,

You need to use a Timer to coordinate when you need to run what you want. You can set the timer Interval to what ever accuracy you need and then call your code from the Timer's tick event to complete your task.

Cheers,

Ian
 
You can't use the application to run the application at a specific time. If the application is running then you can use a Timer to have it do something at a specific time but if the application isn't running then it can't run itself. Windows has a built-in Scheduled Tasks utility that allows you to tell the OS to run specific applications at specific times. It has a commandline interface that you can invoke using a batch file or using Process.Start in VB code.

How to Create, Modify and Delete Scheduled Tasks from the Command Line - How-To Geek
 
Back
Top