Answers for "open every program using python by name"

2

open applications by python

dir = 'C:\\myprogram.exe'

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

import subprocess
subprocess.Popen([dir])
subprocess.call(dir)
Posted by: Guest on July-20-2020

Code answers related to "open every program using python by name"

Python Answers by Framework

Browse Popular Code Answers by Language