how to open any application using python

65

open applications by python -

dir = 'C:\\myprogram.exe'

import os
os.startfile(dir)
os.system(dir)

import subprocess
subprocess.Popen([dir])
subprocess.call(dir)

Comments

Submit
0 Comments