Check Doug Hennig's article and code
Scheduling Tasks>
>I'm working on a Window XP-platform and i'm using the TaskScheduler-DLL to access the task planner. It works splendid... on XP !
>I tried my code on a Vista-PC and the code doesn't fail but no task is added to the task planner.
>On Vista i can use the SchTasks.exe (schtasks /Create /TN First /SC DAILY ...) through the run-command but i'd rather use the TaskScheduler.dll or another object which is compatible with all platforms.
>
>Does anyone know a problem for my first problem or does anyone uses another (easy-to-use ;-) object ?
>
>Thankx !
--sb--