Issue with subprocess Module

Albert Hopkins marduk at
Tue Apr 7 14:07:01 CEST 2009

On Tue, 2009-04-07 at 07:53 -0400, Dave Angel wrote:

> >   
> subprocess.Popen() is expecting the name of a program, which should 
> normally have an extension of .exe   You're handing it a .bat file, 
> which is not executable.  It only executes in the context of a command 
> interpreter (shell), such as cmd.exe
> You can probably do what you want by running "cmd.exe" and passing it 
> "test.bat" as a parameter

It seems to me that most people who have trouble with the subprocess
module are Windows users.  And indeed it does have a more *nix-like
interface.  But I'm wondering if there is another module that is more
Windows-friendly (thinking out loud)?

More information about the Python-list mailing list