Answers for "python open application windows"

2

how to open any application using python

import os

os.system("program_name") # To open any program by their name recognized by windows

# OR

os.startfile("path to application or any file") # Open any program, text or office document
Posted by: Guest on January-05-2021
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 "python open application windows"

Python Answers by Framework

Browse Popular Code Answers by Language