exec .exe

I

Irmen de Jong

newbie question, how do you run a .exe generated by MSVC++ in python
in windows?

Use the subprocess module, for instance:
subprocess.call(["notepad.exe", "d:/file.txt"])

irmen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,944
Members
47,492
Latest member
gabbywilliam

Latest Threads

Top