jpshaver

jpshaver

  • NA
  • 8
  • 0

What is best way to make C# code create a windows scheduled task?

Feb 25 2005 6:31 PM
I am writing a magnificent C# .NET program. The towering beauty of this masterpiece will be made even more impressive if I can somehow interface to the windows task scheduler in order to program it to cause another awesome C# module to execute. Essentially, I want to do from a C# program what I can do from the standard Windows Task Scheduler Wizard GUI: Specify an exe or bat file to run according to the various scheduling patterns one can create there. For instance, run a task every week night at 8:00 PM. Alternatively, I could use the MSFT SQL Server to create a schedule. The perfect solution for me would be a .NET class that I could utilize, but I'm not seeing one. I have seen a com interface in MSDN, but I'm not able to understand the "language" spoken there yet, let alone speak it. I would very much appreciate some guidance. Thanks, Jerry