Linux has its Crontab, but Windows since 98 has had a task scheduler. There's also the At command which used to have a major security flaw in it back in Win NT days. Because it ran at system level, you could access hidden areas in the registry with a program run under it.
A new version of task scheduler was introduced with Vista. This Codeplex hosted Wrapper in C# makes working with the task scheduler (older and newer versions) a bit simpler. You can use it for creating tasks automatically with code like this:
new TaskService().AddTask("Test", new DailyTrigger { DaysInterval = 2 }, new ExecAction("notepad.exe", "c:\\test.log", null));
- Find this and more in the C# Code Library
Comments
No comments yet. Leave a Comment

