Author tim.golden
Recipients sandberg, tim.golden
Date 2009-03-13.18:29:37
SpamBayes Score 0.000254471
Marked as misclassified No
Message-id <>
In-reply-to <>
Erik Sandberg wrote:
> Erik Sandberg <> added the comment:
> I experimented further, the only way to run a .bat file whose name
> contains funny characters, seems to be:
>'""f(o.bat""', shell=True)

Well there's a bit of a double-whammy going on here. There's
a long-unfixed bug which doesn't quote parameters to
subprocess under Windows when shell=True:

but in fact you don't need to set shell=True to run a batch
file anyway:

import subprocess
open ("t(o.bat", "w").write ("echo we are here\n") (["t(o.bat"])
Date User Action Args
2009-03-13 18:29:41tim.goldensetrecipients: + tim.golden, sandberg
2009-03-13 18:29:38tim.goldenlinkissue5484 messages
2009-03-13 18:29:37tim.goldencreate