How to run a dos executable from python
larry.bates at websafe.com
Thu Jan 26 22:12:55 CET 2006
> I have an executable (e.g. myprog.exe) which takes some set number of
> This command works ok:
> os.system(r"c:\tmp\myprog.exe arg1 arg2 arg3")
> The problem is that the path to the program and the arguments are
> variable at runtime so I need to pass them as arguments.
Take a look at the subprocess module or on older versions of Python
you can use os.spawn.
More information about the Python-list