[python-win32] win32process.CreateProcess alternative that takes an array

Moore, Paul Paul.Moore@atosorigin.com
Mon, 7 Apr 2003 12:49:54 +0100

From: Robert Olson [mailto:olson@mcs.anl.gov]
> The formula that I've stumbled onto that appears to work, even
> with arguments with embedded spaces, is this:

>         ""cmdname" "arg1" "arg2" ..."

> where the string passed to os.spawn or os.popen is indeed entirely
> wrapped in quotes.

The discussion is about CreateProcess, not os.spawn/os.popen.

But I'd suspect that this will fail for os.popen if arg1 were to end
in a backslash, or if it contained a double quote character.