Hi all..
I am new to Python and I am here seeking help.
Actually, I'd like to run a DOS executable file from Python.
The DOS excutable file requires 5 inputs from the users, and I have tried some coding which apparently doesn't work. Can anyone help? Here is my codes:
datapath = c:\\python # datapath for excutable file
input1 = "4096"
input2 = "ZNewmark.IN"
input3 = "0.005"
input4 = "0.1"
input5 = "ZNewmark.out"
import os
os.system('ZNewmark(090809).exe %s %s %s %s %s < %s'%(input1,input2,input3,input4,input5),'c:\\python\\)'))
Thanks in advance.
Evan