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
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
>
> 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
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