I need to schedule a console application to run daily at a certain time of the day. I have used “Scheduled Tasks” feature of Windows.
Is there a way to dynamically change the time-of-the-day programmatically by C# for example?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is an API available but as far as I know not for managed code.
http://msdn.microsoft.com/en-us/library/aa384006(VS.85).aspx
Alternatively you could let your program use the command line interface (schtasks).