import os os.execl( "c:/Windows/Notepad.exe", "c:/userlog.txt") print "Running notepad" #or import subprocess subprocess.call("c:/Windows/Notepad.exe") print "Running notepad" #starting a Web browser: import os os.system('/usr/bin/firefox') os.system(r'c:\"Program Files"\"Mozilla Firefox"\firefox.exe') #Windows specific function os.startfile: import os os.startfile(r' c:\Program Files\Mozilla Firefox\firefox.exe')
Tuesday, October 16, 2012
Run Application from host
Subscribe to:
Post Comments (Atom)
Loved this blog thoroughly. python training in Chennai