how can I create window scheduler task via a c# webpage ?
I have an Exe that I want to run once or twice a week.
this task should run even if the website is down.
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.
You can schedule task through dos commands at command prompt. Please see this article How to Create, Modify and Delete Scheduled Tasks from the Command Line
You can execute dos command through aspx. See this article Running DOS Command Inside aspx Pages. Combining these two you can come up with commands to schedule or modify existing scheduled commands in windows through a web page in asp.net. Hope this helps
EDIT: Found out that there is a Task Scheduler 2.0 Interfaces, Also check this article from codeproject: A New Task Scheduler Class Library for .NET