[python-win32] Task Scheduler

Konstantin Veretennicov kveretennicov at gmail.com
Thu Jul 14 20:41:53 CEST 2005


On 7/14/05, kimwaic888-pythonwin32 at yahoo.com
<kimwaic888-pythonwin32 at yahoo.com> wrote:
> Hello list,
> 
> I am having trouble working with the Windows XP Task
> Scheduler.

...

> There is also a at.exe program which is suppose to
> have been replaced by the schtasks.exe.  It's a lot
> simpler then schtasks.exe and doesn't prompt you for
> anything - it simply creates a simplified task object
> in the Scheduler folder for you.  However, when the
> time come to execute, nothing happens.

At.exe + subprocess module should be fine. Are you able to schedule
tasks with at.exe manually from command line? You may need to
double-check datetime format and "/interactive" switch.

> 
> Does anybody know of any other way to interact with
> the Scheduler?  Hopefully, this is something that can
> be accessed from Pythonwin32, rather then through the
> CLI programs.

I guess you can control it via ITaskScheduler COM interface:
http://msdn.microsoft.com/library/en-us/taskschd/taskschd/task_scheduler_start_page.asp
But calling at.exe is simpler IMO.

- kv


More information about the Python-win32 mailing list