Re: [Tutor] Running DOS jobs in batch

2006-09-07 Thread Alan Gauld
> imex_exe=r'C:\Program Files\CMG\IMEX\2005.10\EXE\mx200510.exe' > imex_args=('mx200510.exe','-f',imex_fil,'-wd','"'+work_dir+'"') > > for n in range(1,nscen): > os.spawnv(os.P_WAIT, imex_exe, imex_args) > > and it seems to work. Not sure why I need to provide the name of > the > applicat

Re: [Tutor] Running DOS jobs in batch

2006-09-07 Thread Etrade Griffiths
Thanks for that Kent.  I did imex_exe=r'C:\Program Files\CMG\IMEX\2005.10\EXE\mx200510.exe' imex_args=('mx200510.exe','-f',imex_fil,'-wd','"'+work_dir+'"') for n in range(1,nscen): os.spawnv(os.P_WAIT, imex_exe, imex_args) and it seems to work.  Not sure why I need to provide the name of

Re: [Tutor] Running DOS jobs in batch

2006-09-07 Thread Kent Johnson
Etrade Griffiths wrote: > Hi > > I am trying to write a PYTHON script that automates the running of an > application program MX200510.EXE under XP Pro via a DOS window. This file > is in directory > > C:\Program Files\CMG\IMEX\2005.10\EXE > > The command line arguments are > > MX200510.EXE -

[Tutor] Running DOS jobs in batch

2006-09-07 Thread Etrade Griffiths
Hi I am trying to write a PYTHON script that automates the running of an application program MX200510.EXE under XP Pro via a DOS window. This file is in directory C:\Program Files\CMG\IMEX\2005.10\EXE The command line arguments are MX200510.EXE -f "temp.dat" -wd "C:\Projects\Vitol\New busin