<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">Il giorno 21 ottobre 2013 12:45, Marco Passanisi <span dir="ltr"><<a href="mailto:mpxnet@gmail.com" target="_blank">mpxnet@gmail.com</a>></span> ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span>output</span> <span style="font-weight:bold">=</span> <span>subprocess</span><span style="font-weight:bold">.</span><span>Popen</span><span>(</span><span style="color:rgb(221,17,68)">'"C:\Windows\System32\dnscmd.exe" /EnumZones'</span><span>,</span> <span>shell</span><span style="font-weight:bold">=</span><span style="color:rgb(153,153,153)">True</span><span>,</span> <span>stdout</span><span style="font-weight:bold">=</span><span>subprocess</span><span style="font-weight:bold">.</span><span>PIPE</span><span>,</span> <span>stderr</span><span style="font-weight:bold">=</span><span>subprocess</span><span style="font-weight:bold">.</span><span>PIPE</span><span>)</span>Python mailing list<br>
</div>
<a href="mailto:Python@lists.python.it">Python@lists.python.it</a><br>
<a href="http://lists.python.it/mailman/listinfo/python" target="_blank">http://lists.python.it/mailman/listinfo/python</a><br>
<br></blockquote></div>Credo che il problema sia causato dai doppi apici che racchiudono il percorso del file da eseguire, perché essa è già dentro la stringa delimitata dagli apici singoli.<br></div></div>