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 :: dataset.shape 
Python :: np.all() 
Python :: python to pseudo code converter online 
Python :: unique items in a list python 
Python :: vscode update imports python unresolved import 
Python :: rotate list python 
Python :: insert list 
Python :: pdf to jpg 
Python :: mute command discord.py 
Python :: range() in python 
Python :: TypeError: can only concatenate str (not "list") to str 
Python :: python update function 
Python :: python parse xml string 
Python :: pygame buttons 
Python :: ros python service client 
Python :: how to mention someone discord.py 
Python :: matplotlib set colorbar range 
Python :: list len python 
Python :: python len 
Python :: python ascii art 
Python :: python ternary operators 
Python :: numpy indexing 
Python :: migration django 
Python :: ceil function in python 
Python :: python call function by string 
Python :: python else 
Python :: csv.dictreader 
Python :: dataframe cut 
Python :: how to create a save command in python 
Python :: python print binary tree 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =