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 :: django filter text first character upper case 
Python :: argparse list 
Python :: how to sort a list in python using lambda 
Python :: how to draw shape square in python turtle 
Python :: how to plotting horizontal bar on matplotlib 
Python :: what is my python working directory 
Python :: iqr in python 
Python :: pandas replace space with underscore in column names 
Python :: get href scrapy xpath 
Python :: sort value_counts output 
Python :: what is a cube minus b cube 
Python :: pandas groupby size column name 
Python :: how to delete nan values in python 
Python :: python 3.9.5 installed update default version 
Python :: how to format integer to two digit in python 
Python :: shutil copy folder 
Python :: swapcase 
Python :: open mat python 
Python :: python read string from file 
Python :: pandas strips spaces in dataframe 
Python :: python sum dictionary values by key 
Python :: pretty json python 
Python :: on click on image pygame 
Python :: convert xml to dataframe python 
Python :: FileExistsError: [Errno 17] File exists: 
Python :: file handling modes in python 
Python :: hmac in python 
Python :: plt.xticks 
Python :: save a file as a pickle 
Python :: python image to grayscale 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =