Re: how to use execfile with argument under windows

2007-01-03 Thread baur79
os.system() solve my problem thanks you guys and happy new year with best wishes from Kazakhstan / Shymkent city / sodbisystems.kz On Jan 2, 11:49 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > baur79 wrote: > > i need to execute this command line (different source for n times) > > > filename.exe

Re: how to use execfile with argument under windows

2007-01-02 Thread Peter Otten
baur79 wrote: > i need to execute this command line (different source for n times) > > filename.exe -type png -source sourcearg -file filename.png > i try with python (python script and filename.exe in same directory) > execfile("filename.exe -type png -source sourcearg -file filename.png") Th

Re: how to use execfile with argument under windows

2007-01-02 Thread Matimus
> > error output > IOError: [Errno 2] No such file or directory:"filename.exe -type png > -source sourcearg -file filename.png" Use 'os.system' not 'execfile'. 'execfile' is for executing other python scripts, not arbitrary command line. Try this: import os ... ... os.system("filename.exe -type

how to use execfile with argument under windows

2007-01-02 Thread baur79
Hi everybody i need to execute this command line (different source for n times) filename.exe -type png -source sourcearg -file filename.png i try with python (python script and filename.exe in same directory) import os .. .. execfile("filename.exe -type png -source sourcearg -file file