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

That does not do what you think it does, see

http://docs.python.org/lib/built-in-funcs.html#l2h-26

You need os.system() or, for more complex applications, the subprocess
module.

Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to