1import subprocess
2
3subprocess.Popen("C:\\Windows\\System32\\notepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
4
1import os
2
3os.system("program_name") # To open any program by their name recognized by windows
4
5# OR
6
7os.startfile("path to application or any file") # Open any program, text or office document
1dir = 'C:\\myprogram.exe'
2
3import os
4os.startfile(dir)
5os.system(dir)
6
7import subprocess
8subprocess.Popen([dir])
9subprocess.call(dir)