Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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 remove warnings 
Python :: python file browser 
Python :: get size of file python 
Python :: recursionerror maximum recursion depth exceeded in comparison 
Python :: combine two dataframes of same length 
Python :: python transpose a list 
Python :: re.split 
Python :: python inspect class 
Python :: python pandas not in list 
Python :: render() django 
Python :: shuffle function in python 
Python :: python bytes to hex 
Python :: check how many letters in a string python 
Python :: python boolean 
Python :: function in function python 
Python :: list comprehension python 
Python :: if statements python 
Python :: gfg placement 
Python :: how to create template folder in django 
Python :: get chrome version with python 
Python :: get end of string python 
Python :: wisdom 
Python :: change value of column in pandas 
Python :: lists in python 
Python :: update python version pycharm 
Python :: python elif syntax 
Python :: user passes test django 
Python :: using slug or .. instead of pk in django 
Python :: armstrong number function 
Python :: string without space pythonm 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =