Re: Running a DOS exe file from python

2006-01-27 Thread Peter Hansen
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

Re: Running a DOS exe file from python

2006-01-26 Thread Rinzwind
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

Re: Running a DOS exe file from python

2006-01-26 Thread lblr33
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: http://groups.google.com/group/comp.lang.python/browse_thread/thread/6dc7c53dd00b99ed/da05733f4a83399f#da05733

Running a DOS exe file from python

2006-01-26 Thread lblr33
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(r"c:\tmp\myprog.exe arg1 arg2 arg3") The problem I have is that the path to mypro