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 :: how to make an application using python 
Python :: print next line 
Python :: using progress bar with rich python 
Python :: how to change directory in python 
Python :: inverting a dictionary 
Python :: sort an array in python 
Python :: python encryption program 
Python :: np.random.choice replace 
Python :: python select random number from list 
Python :: how to make dice roll in python 
Python :: Read multiple csv files into separate dataframes Python 
Python :: palindrome python 
Python :: django rest framework viewset 
Python :: round to 3 significant figures python 
Python :: python bool() 
Python :: datetime am pm python 
Python :: runserver coomand in django 
Python :: package python 
Python :: python list tutorial 
Python :: list slicing reverse python 
Python :: python dictionary if not found 
Python :: how to replace zero value in python dataframe 
Python :: max of a list in python 
Python :: multiplication in python 
Python :: tkinter bg button 
Python :: str.extract 
Python :: thresholding with OpenCV 
Python :: loi normale python numpy 
Python :: series change index pandas 
Python :: excelwriter python 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =