Executing files

Tom nospam at nospam.com
Wed Sep 20 17:45:22 CEST 2000

All I can add is that the API call you need is CreateProcess().  But I don't
know what Python function would use this API.


"Daley, Mark W" <mark.w.daley at intel.com> wrote in message
news:75F7304BB41CD411B06600A0C98414FCB36910 at ORSMSX54...
> This question has me running around in circles.  I am running a Python
> process that needs to execute a DOS executable and return a value based on
> success or failure.  I need to continue the Python process after this has
> completed.  It seems to me that I should be able to execute and return,
> the commands I've read so far don't give me much hope.  Here's what I've
> found:
> - os.system could execute, but the return is whether or not Python
> executed the command, not whether the command completed successfully.
> - os.execv would execute, but it would kill the Python process and
> replace it with the executable, while I need to continue the Python
> - spawn would work, except I'm not in Windows, I'm in DOS.
> If there is any input to this question, I would greatly appreciate it.  I
> can provide more information, if only I knew what would help.
> - Mark
> --------------------------------------------------------------------------
> ----------------
> The opinions expressed are mine, and not necessarily those of my employer.

More information about the Python-list mailing list