Answers for "python to start an application"

5

how to launch an application using python

import subprocess

subprocess.Popen("C:\\Windows\\System32\\notepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
Posted by: Guest on August-31-2021
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

Code answers related to "python to start an application"

Python Answers by Framework

Browse Popular Code Answers by Language