simple question ... exec in W32?

Neil Hodgson neilh at scintilla.org
Wed Jun 28 21:52:54 EDT 2000


> How to I start a W32 application, like Word etc, from a Python script? I'm
> actually trying to rewrite a backup script, which, additionally, does a
lot
> of non-backup processing overnight.

   There are several ways. I'd suggest ShellExecute from the Win32
extensions:

import win32api
win32api.ShellExecute(0,None,"winword.exe",None,"",1)

   Neil







More information about the Python-list mailing list