An Interest In:
Web News this Week
- March 27, 2024
- March 26, 2024
- March 25, 2024
- March 24, 2024
- March 23, 2024
- March 22, 2024
- March 21, 2024
January 22, 2022 12:31 pm GMT
Original Link: https://dev.to/sureshayyanna/open-any-application-from-your-laptop-using-python-4eeg
Open Any application from your laptop using Python
Step 1: Install python IDLE
Step 2: type below commands
- Import subprocess
- subprocess.call(AppPath//AppName.exe)
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license()" for more information.>>> import subprocess>>> subprocess.call('cmd.exe')
Eg 1: Open Mozilla from your laptop
subprocess.call(['C:\Program Files\Mozilla Firefox\\firefox.exe'])
Original Link: https://dev.to/sureshayyanna/open-any-application-from-your-laptop-using-python-4eeg
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To