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 :: filter pandas dataframe 
Python :: delete values with condition in numpy 
Python :: Save a Dictionary to File in Python Using the dump Function of the pickle Module 
Python :: python open and read file with 
Python :: creating data frame in python with for loop 
Python :: delete nans in df python 
Python :: python if elif else in one line 
Python :: isnull().mean() python 
Python :: python slice string 
Python :: python remove whitespace from start of string 
Python :: sort series in ascending order 
Python :: python http.server 
Python :: how to install python 3.6.0 on debian 
Python :: python comment multiple lines 
Python :: string remove everything after character python 
Python :: append path to sys jupyter notebook 
Python :: python substitute multiple letters 
Python :: how to start an exe file in python 
Python :: compress image pillow 
Python :: python unzip a zip 
Python :: matplotlib measure the width of text 
Python :: remove all odd row pandas 
Python :: python vs c++ 
Python :: plt.savefig specify dpi 
Python :: how to convert utf-16 file to utf-8 in python 
Python :: convert all items in list to string python 
Python :: making lists with loops in one line python 
Python :: get name of a file in python 
Python :: thread with args python 
Python :: venv 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =