how to use execfile with argument under windows
baur79
baur79 at gmail.com
Tue Jan 2 12:06:31 EST 2007
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 filename.png")
error output
IOError: [Errno 2] No such file or directory:"filename.exe -type png
-source sourcearg -file filename.png"
try
execfile("d:\pathto\filename.exe -type png -source sourcearg -file
filename.png")
error output
IOError: [Errno 2] No such file or directory:"d:\pathto\filename.exe
filename.exe -type png -source sourcearg -file filename.png"
please help to solve problem
thanks
More information about the Python-list
mailing list