0

I still new with python. I try to run an

exe

file by using python. Can i know what should i use and import?

0

3 Answers 3

1
import subprocess

subprocess.call(['C:\\Temp\\a b c\\Notepad.exe', 'C:\\test.txt'])

import os

os.system(r'"C:/Documents and Settings/flow_model/flow.exe"')
Sign up to request clarification or add additional context in comments.

Comments

1
import os
os.system("path_to_exe")

Try using this it will work for sure.

Comments

1

Use subprocess module.

import subprocess
subprocess.Popen([r"path\filename.exe"]

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.