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 launch a application using python 
Python :: python remove warnings 
Python :: pandas merge validate 
Python :: python move 
Python :: rename a column 
Python :: python print list 
Python :: convert pine script to python online 
Python :: where are python libraries installed ubuntu 
Python :: python __dict__ 
Python :: dice rolling simulator python code 
Python :: *args in python 
Python :: join python 
Python :: python string: .find() 
Python :: for i in range python 
Python :: remove a columns in pandas 
Python :: leetcode solutions python 
Python :: how to print from a python list 
Python :: python find if part of list is in list 
Python :: Python list tutorial for beginners 
Python :: phone numbers 
Python :: how to check list is empty or not 
Python :: what is repr function in python 
Python :: python list max value 
Python :: how to print name in python 
Python :: doing math in python 
Python :: how to sleep() in python 
Python :: Math Module floor() Function in python 
Python :: read list of dictionaries from file python 
Python :: api key python 
Python :: python class declaration 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =