-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOS - Menu Driven.pyd.txt
More file actions
207 lines (104 loc) · 6.41 KB
/
OS - Menu Driven.pyd.txt
File metadata and controls
207 lines (104 loc) · 6.41 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
import os
import pyttsx3
print("##################################################################")
print()
print("Greetings _/\_")
print("The system has started.")
print("Please state your command.")
print()
while True:
print("##################################################################")
print("Task Required :- ", end = "")
p=input().lower()
if ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("notepad++" in p)):
print("Starting Notepad++...")
os.startfile("Notepad++")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("notepad" in p)):
print("Starting Notepad...")
os.system("notepad")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("outlook" in p)):
print("Starting Outlook...")
os.startfile("outlook")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and (("lync" in p) or ("skype" in p))):
print("Starting Skype/Lync Application...")
os.startfile("LYNC")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("excel" in p)):
print("Starting Excel...")
os.startfile("EXCEL")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("msaccess" in p)):
print("Starting MS Access...")
os.startfile("MSACCESS")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and (("power point" in p) or ("powerpoint" in p) or ("ppt" in p))):
print("Starting PowerPoint...")
os.startfile("POWERPNT")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("cls" in p)):
print("Starting Eclipse...")
os.system("eclipse")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("pycharm" in p)):
print("Starting PyCharm...")
os.system("pycharm64")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("internet explorer" in p or "internetexplorer" in p)):
print("Starting Internet Explorer...")
os.system("iexplore")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("adobereader" in p or "adobe reader" in p)):
print("Starting Adobe Reader...")
os.startfile("AcroRd32")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("remote desktop connection" in p or "remote desktop connection" in p )):
print("Starting Remote Desktop Connection...")
os.startfile("mstsc")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("controlpanel" in p or "control panel" in p)):
print("Starting Control Panel...")
os.system("Control Panel")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("camera" in p)):
print("Starting Camera...")
os.startfile('microsoft.windows.camera:')
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("fileexplorer" in p or "file explorer" in p)):
print("Starting File Explorer...")
os.system("explorer")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("wordpad" in p or "word pad" in p)):
print("Starting Word Pad...")
os.startfile("wordpad")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("word" in p)):
print("Starting Microsoft Word...")
os.startfile("WINWORD")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("paint" in p)):
print("Starting Paint...")
os.startfile("mspaint")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("quick assistance" in p or "quickassistance" in p)):
print("Starting QuickAssist...")
os.startfile("quickassist")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("math input panel" in p or "mathinputpanel" in p)):
print("Starting math Input Panel...")
os.startfile("mip")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("snipping tool" in p or "snippingtool" in p)):
print("Starting Snipping Tool...")
os.system("snippingtool")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("teamviewer" in p or "team viewer" in p)):
print("Starting Team Viewer...")
os.system("TeamViewer")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("xphone" in p or "x phone" in p)):
print("Starting XPhone...")
os.system("C4B.XPhone.Commander")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("xpsviewer" in p or "xps viewer" in p)):
print("Starting XPS Viewer...")
os.system("xpsrchvw")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("windows fax & scan" in p or "windowsfax&scan" in p or "windows fax and scan" in p or "windowsfaxandscan" in p or "windows fax" in p or "windows scan" in p)):
print("Starting windows Fax & Scan...")
os.startfile("WFS")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("window media player" in p or "windowmediaplayer" in p)):
print("Starting Windows Media Player...")
os.system("wmplayer")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("agentransack" in p or "agent ransack" in p)):
print("Starting Agent Ransack...")
os.system("AgentRansack")
elif ((("execute" in p) or ("launch" in p) or ("run" in p) or ("open" in p) or ("start" in p)) and ("calculator" in p)):
print("Starting Calculator...")
os.system("calc")
elif (("close" in p) or ("quit" in p) or ("bye" in p) or ("exit" in p) or ("terminate" in p)):
print("##################################################################")
print("Service closed...")
break;
else:
print("##################################################################")
print("Entered data not supported...")
print("Please try again...")