-
Notifications
You must be signed in to change notification settings - Fork 0
/
applaunch.py
35 lines (32 loc) · 1.65 KB
/
applaunch.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
import subprocess
apps=['notepad','vscode','chrome','movies','wordpad','word','excel','powerpoint','study files','utorrent','whatsapp','workstation','arduino','nox']
def launch(app):
if app=="notepad":
subprocess.Popen('C:\\Windows\\System32\\notepad.exe')
elif app=='vscode':
subprocess.Popen("C:\\Users\\31220\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe")
elif app=='chrome':
subprocess.Popen("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")
elif app=='movies':
os.startfile('D:\\ENTERTAINMENT DRIVE')
elif apps=='study files':
os.startfile('D:\\COLLEGE DRIVE')
elif apps=='utorrent':
subprocess.Popen('C:\\Users\\31220\\Desktop\\uTorrent.exe')
elif apps=='whatsapp':
subprocess.Popen('C:\\Users\\31220\\AppData\\Local\\WhatsApp\\WhatsApp.exe')
elif apps=='workstation':
subprocess.Popen("C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmware.exe")
elif apps=='arduino':
subprocess.Popen("C:\\Program Files (x86)\\Arduino\\arduino.exe")
elif apps=='nox':
subprocess.Popen("D:\\Program Files\\Nox\\bin\\Nox.exe")
elif apps=='wordpad':
subprocess.Popen("C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe")
elif apps=='word':
subprocess.Popen("C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE")
elif apps=='excel':
subprocess.Popen("C:\\Program Files\\Microsoft Office\\root\\Office16\\EXCEL.EXE")
elif apps=='powerpoint':
subprocess.Popen("C:\\Program Files\\Microsoft Office\\root\\Office16\\POWERPNT.EXE")