how to launch an application using python
import subprocess
subprocess.Popen("C:\\Windows\\System32\\notepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
how to launch an application using python
import subprocess
subprocess.Popen("C:\\Windows\\System32\\notepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
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
open applications by python
dir = 'C:\\myprogram.exe'
import os
os.startfile(dir)
os.system(dir)
import subprocess
subprocess.Popen([dir])
subprocess.call(dir)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us