Windows XP Scheduled task
Hello there, I'm not too entirely familiar with the operation of scheduled tasks within Windows XP and I'm tasked with finding an operable solution.
Firstly, a couple things come to mind:
1. Start the process with windows using a low priority and sleep until it is time to function. This idea is definitely not an elegant solution.
2. Use the Windows XP Task Scheduler to schedule a task for the right time(s) that use my tool by passing command-line arguments. I would like a way to add the task to the schedule via C# but haven't found it yet.
http://support.microsoft.com/kb/308569
Secondly, I would like to ask about other potential solutions and just a spare opinion on which one you would choose.
Regards,
pseudorandom21
pseudorandom21
Practically a Posting Shark
890 posts since Jan 2011
Reputation Points: 216
Solved Threads: 111
You can run the command line utility schtasks from within your C# program. Use 'schtasks /create /?' for help about creating a task.
NOTE: schtasks may not be available on Windows XP.
Momerath
Nearly a Senior Poster
3,384 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558