Rinzwind wrote:
Something like this:
progname = 'c:\tmp\myprog.exe arg1 '+'-- help'
os.system(r'progname)
Well, other than the ways in which it wouldn't work:
1. arg1 doesn't get substituted with anything, if that's what you
meant, but rather is inserted as the literal string arg1. If you
I would like to execute a windows program from python and wait for it
to finish before returning to the python script.
The script I want to run has a set number of arguments.
The following does work fine:
os.system(rc:\tmp\myprog.exe arg1 arg2 arg3)
The problem I have is that the path to
I posted this earlier on yahoo groups and then realized that the most
recent post was 2003. What I didn't realize is that it posted to this
group so I posted it again.
The other post is:
Hello,
Something like this:
progname = 'c:\tmp\myprog.exe arg1 '+'-- help'
os.system(r'progname)
should work too.
So you should be able to change progname to any location you need to
start it and all the args to whatever is needed.
--
http://mail.python.org/mailman/listinfo/python-list