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 :: pyplot save image 
Python :: python loop list backwards 
Python :: django abstractuser fields 
Python :: tkinter call function in mainloop 
Python :: empty python file 
Python :: python index 
Python :: how to comment in python 
Python :: python hide terminal 
Python :: abstract classes in python 
Python :: age calculator python 
Python :: pandas sort values in groupby 
Python :: python difference 
Python :: do while in python 
Python :: true in python 
Python :: pandas sample 
Python :: how to make a screen in pygame 
Python :: stdin and stdout in python 
Python :: sum function python 
Python :: python check if character in string 
Python :: hide console in python build 
Python :: how to send a command to cmd using python 
Python :: python dictionary accessing an element 
Python :: rename data columns pandas 
Python :: df.rename(index=str, columns={"A": "a", "C": "c"}) what does index=str means 
Python :: initialize 2d array of zeros python 
Python :: python if syntax 
Python :: text to speech module python 
Python :: python loop 3 times 
Python :: how split text in python by space or newline with regex 
Python :: python frozenset 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =