samilnart . wrote:
> So when i launch my script on command line using pythonw it works fine
> but if task scheduler launches it, it instantly crashes without error
> message. Here is the code: http://pastebin.com/5QfmMrPN . Any help is
> appreciated.

What user did you use to create your scheduled task?  Is it running as you?

You might consider using the subprocess module to start your netsh
commands instead of os.system.  os.system is going to want to create a
subshell, but processes running in a service (which scheduled tasks do)
aren't allowed to interact with the desktop.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to