Here's a question for you programming gurus...

I need to schedule a task to run in the Windows Task Scheduler programatically. I know under WinNT and Win2k you can just shell out to the AT command or use the NetSchedule api calls. Unfortunately, under WinXP (and I assume win2003 server), unless you have a user setup for the at tasks to run as, they won't run. They sit there in the list looking like they will run, but they won't.

To make matters worse, there doesn't seem to be an easy way to add them under Win98 or ME. (Maybe just copy in the .job file and make sure the Task Scheduler is running at startup in the registry?)

I don't mind popping up a dialog for them to enter the administrator username/pass if needed, but I need for the task to be scheduled and actually run. It has to be possible, Norton does it pretty seamlessly...

Anyone willing to give that one a stab?
_________________________
~ John