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
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.