Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

exec .exe

3 views
Skip to first unread message

wukong

unread,
Mar 26, 2010, 5:58:08 PM3/26/10
to
newbie question, how do you run a .exe generated by MSVC++ in python
in windows?

Irmen de Jong

unread,
Mar 26, 2010, 6:10:38 PM3/26/10
to
On 26-3-2010 22:58, wukong wrote:
> 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

wukong

unread,
Mar 26, 2010, 6:48:02 PM3/26/10
to

worked like a charm, :-) thanks irmen.

0 new messages