Guy Mott added the comment:
> Are you sure that the exact command line works in a Windows shell?
Yes, I tried running the exact same command line in a Windows shell and
it worked fine. Note that the buggy.py script echoes the command line
and then immediately calls os.system with it.
New submission from Guy Mott:
Given a call to os.system() with a command string like this:
os.system('"TheCommand" > "MyOutput"') # fails
then the call fails with the following error message on the console:
'TheCommand" > "MyOutput