[python-win32] Interacting with the desktop as a service onVista

Sidnei da Silva sidnei at enfoldsystems.com
Thu Oct 23 19:04:15 CEST 2008


On Thu, Oct 23, 2008 at 2:54 PM, Steven James <steven.james at gmail.com> wrote:
> Because I like fun stuff and knowing that people at cisco use hacks like
> this, here you go, this should work...
>
> (cut to snippets because of length)
> http://snippets.dzone.com/posts/show/6324
>
> As mentioned before, the basic process is to create a disabled Scheduled
> Task. When you are ready to run it, you enable it, run it, then disable it
> again. You can supply the credentials. I tried to make everything a variable
> in the above post. Does not run under Windows XP (there wasn't a Task
> Scheduler COM interface in XP AFAIK).

I haven't tried your snippet, but we definitely have used COM to
create Scheduled Tasks on Windows all the way back to Windows 2000. I
suspect it does work on Windows XP unless it uses some new feature in
Vista.

-- 
Sidnei da Silva
Enfold Systems
http://enfoldsystems.com
Fax +1 832 201 8856
Office +1 713 942 2377 Ext 214
Skype zopedc


More information about the python-win32 mailing list