Professional Documents
Culture Documents
5: AI Desktop Assistant
Group Members:
BSCS-FA18-028 ABDULLAH
BSCS-FA18-011 Hafiz Hamza Arslan
BSCS-FA18-044 Muhammad Huzaifa Khan
Task 4: To open the VS Code Program
Steps to get the code path of the application:
elif
elif'open
'openvc'
vc'ininquery:
query:
codePath = "C:\Users\Window
codePath = "C:\Users\Window
X\AppData\Local\Programs\Microsoft
X\AppData\Local\Programs\MicrosoftVS VSCode\Code.exe"
Code\Code.exe"
os.startfile(codePath)
os.startfile(codePath)
Task 5: To play Audio
To play Audio, I need to import a module called os. Import this module directly
with an import statement.
elif
elif'play
'playaudio'
audio'ininquery:
query:
audio_dir = 'D:\6^th\audio.m4a'
audio_dir = 'D:\6^th\audio.m4a'
sounds
sounds==os.listdir(audio_dir)
os.listdir(audio_dir)
print(sounds)
print(sounds)
os.startfile(os.path.join(audio_dir,
os.startfile(os.path.join(audio_dir,sounds[0]))
sounds[0]))
Problem There are basically six types of permissions in
Windows: Full Control, Modify, Read & Execute, List Folder
Contents, Read, and Write.
What is smtplib?
Simple Mail Transfer Protocol (SMTP) is a protocol that allows us to send emails and to
route emails between mail servers. An instance method called sendmail is present in the
SMTP module. This instance method allows us to send an email.
It takes 3 parameters: