Re: [python-win32] problems with win32comext\taskscheduler on windows

2010-05-04 Thread Vaida Bogdan
It seems that the Task Scheduler 2.0 enum types in TASK_TRIGGER_TYPE2 are not 
implemented:

These are for Task Scheduler 1.0
$ grep -rni TASK_TIME_TRIGGER_DAILY *
com/win32comext/taskscheduler/src/PyITaskTrigger.cpp:129:   
TASK_TIME_TRIGGER_ONCE,TASK_TIME_TRIGGER_DAILY,\n
com/win32comext/taskscheduler/src/PyITaskTrigger.cpp:133:   
{Daily_DaysInterval, T_USHORT, 
OFF(task_trigger.Type.Daily.DaysInterval),0,TASK_TIME_TRIGGER_DAILY},
com/win32comext/taskscheduler/src/taskscheduler.cpp:40: 
PyModule_AddIntConstant(module,TASK_TIME_TRIGGER_DAILY, 
TASK_TIME_TRIGGER_DAILY);
These are for Task Scheduler 2.0
$ grep -rni TASK_TRIGGER_DAILY *
$ 

http://msdn.microsoft.com/en-us/library/aa383915(v=VS.85).aspx

Is Task Scheduler 2.0 supported in pywin32 or can you provide me with some 
ideas on how to make it work? (my code is located here: 
http://pastebin.com/bmg847hw )

Thanks in advance,
  Bogdan

On 4, May, 2010, at 7:08 AM, Roger Upole wrote:

 Does job.GetTriggerCount() return 1 ?
 If it does, but the trigger doesn't appear in the
 Task Scheduler UI, most likely there's
 something it doesn't like about the trigger's
 flags.
 
 Roger
 
 ___
 python-win32 mailing list
 python-win32@python.org
 http://mail.python.org/mailman/listinfo/python-win32

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


[python-win32] problems with win32comext\taskscheduler on windows 2008

2010-05-03 Thread Vaida Bogdan
 Hi, I have a problem with my taskscheduler library: it works on Windows XP 
 but upon entering the 2008 land my task gets created without any triggers. 
 I've ran the same commands I ran on XP but the task doesn't get created.
 
 http://pastebin.com/bmg847hw
 
 This on XP (and 2003 Server) creates a task with a trigger to execute daily 
 while on Server 2008 I get the task created but with no triggers.
 
 The account on 2008 has Administrator privileges and UAC are disabled.
 
 I'd very much appreciate any ideas on how to solve this.

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


[python-win32] problems with win32comext\taskscheduler on windows

2010-05-03 Thread Roger Upole

Does job.GetTriggerCount() return 1 ?
If it does, but the trigger doesn't appear in the
Task Scheduler UI, most likely there's
something it doesn't like about the trigger's
flags.

 Roger

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32