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 open any application in python 
Python :: pyplot save image 
Python :: pytorch argmax 
Python :: numpy array to int type 
Python :: shape of a dataframe 
Python :: length of a list python 
Python :: how to randomise a string in python 
Python :: python polymorphism 
Python :: syntax error python 
Python :: transpose of a matrix in python using loop 
Python :: multiprocessing in python 
Python :: append multiple elements python 
Python :: break 
Python :: how to find duplicates in pandas 
Python :: correlation matrix in python 
Python :: list from dataframe python 
Python :: round down decimal python 
Python :: python chatbot error 
Python :: pd.explode 
Python :: import os python 
Python :: export an excel table to image with python 
Python :: if we use list in the dictionary 
Python :: pandas split groupby 
Python :: python rounding 
Python :: fill na with average pandas 
Python :: raspbian run a python script at startup 
Python :: selenium find element by link text 
Python :: circular linked list in python 
Python :: list operations in python 
Python :: how to check if a list is empty in python 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =