Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

how to launch an application using python

import subprocess

subprocess.Popen("C:WindowsSystem32
otepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
Comment

PREVIOUS NEXT
Code Example
Python :: start application from python 
Python :: dataset.shape 
Python :: python file browser 
Python :: df add column from dict 
Python :: how to make a chrome extension in python 
Python :: run python in background ubuntu 
Python :: temporary table pyspark 
Python :: python sleep 10 seconds 
Python :: syntax error in python 
Python :: dataframe change column types 
Python :: regular expression in python 
Python :: break continue pass in python 
Python :: the range() function 
Python :: remove list of value from list python 
Python :: how to iterate over rows in pandas 
Python :: pytesseract.image_to 
Python :: vs code set interpreter 
Python :: store message sent by user in string discord py 
Python :: python button click code 
Python :: python hex 
Python :: python run system commands 
Python :: when to use map function in python 
Python :: hash in python 
Python :: group by data 
Python :: python instagram bot 
Python :: python vrer un fichier texte 
Python :: mad libs generator python tutorial 
Python :: ImportError: cannot import name 
Python :: calculate sum in 2d list python 
Python :: python launch prompt 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =