0

I want to open a program located at a specific path in Python but I am getting this error:

Error

Error in cmd: The system cannot find the file steam.exe

import os
os.system('start steam.exe "D:\Program Files (x86)\Steam"')
0

1 Answer 1

1

use subprocess:

import subprocess

subprocess.call(['D:\Program Files (x86)\Steam\\steam.exe'])
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.