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 :: python choose random element from list 
Python :: make y axis start at 0 python 
Python :: how to time a python script 
Python :: python bytes to dict 
Python :: pd read csv unname 
Python :: python: change column name 
Python :: python write to command prompt 
Python :: python show interpreter path 
Python :: counter in django template 
Python :: django add media 
Python :: python hand tracking module 
Python :: install easygui 
Python :: normalize values between 0 and 1 python 
Python :: check gpu in tensorflow 
Python :: python3 base64 encode basic authentication 
Python :: python perfect square 
Python :: pytorch load model 
Python :: conda python 3.8 
Python :: pandas set a column as index 
Python :: pyyaml install 
Python :: A value is trying to be set on a copy of a slice from a DataFrame. 
Python :: how to get a random element from an array in python 
Python :: html to json python 
Python :: install pandas in python mac 
Python :: python write array to file 
Python :: utf8 python encodage line 
Python :: matplotlib insert text 
Python :: python - remove scientific notation 
Python :: how to extract data from website using beautifulsoup 
Python :: django how to set a navbar active 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =