Index: Lib/subprocess.py =================================================================== --- Lib/subprocess.py (revision 59074) +++ Lib/subprocess.py (working copy) @@ -713,7 +713,8 @@ startupinfo.dwFlags |= STARTF_USESHOWWINDOW startupinfo.wShowWindow = SW_HIDE comspec = os.environ.get("COMSPEC", "cmd.exe") - args = comspec + " /c " + args + args = '"' + args + '"' + args = comspec + ' /c ' + args if (GetVersion() >= 0x80000000 or os.path.basename(comspec).lower() == "command.com"): # Win9x, or using command.com on NT. We need to