how I call the program in windows using python

Chris Keyes chrisk at nipltd.com
Tue Jan 14 15:29:38 EST 2003


This may not be the best way to do this but I'd try os.system(command)

eg
 >>> import os
 >>> os.system("d:/windows/calc.exe")
0
 >>>
(I could not find the copy of calc installed under 2000, but I have a 98 
install on D, I've not gone completely mad, honest!)

Hope that helps

Chris

Maria Clara wrote:
> I like to run one program of windows for example ejemplo.bat using zope





More information about the Python-list mailing list