DEV Community

Suresh Ayyanna
Suresh Ayyanna

Posted on

3 1 1 1 1

Open Any application from your laptop using Python

Step 1: Install python IDLE
Step 2: type below commands

  1. Import subprocess
  2. 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 win32
Type "help", "copyright", "credits" or "license()" 
for more information.

>>> import subprocess
>>> subprocess.call('cmd.exe')
Enter fullscreen mode Exit fullscreen mode

Eg 1: Open Mozilla from your laptop

subprocess.call(['C:\Program Files\Mozilla Firefox\\firefox.exe'])
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay