Answers for "how to start application in python"

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

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 "how to start application in python"

Python Answers by Framework

Browse Popular Code Answers by Language