On 27 Dec 2006 09:16:53 -0800, "hubritic" <[EMAIL PROTECTED]>
wrote:

>I am trying to set off commands on Windows 2003 from python.
>Specifically, I am trying to use diskpart with a script file (pointed
>to with path).
>
>            cmd = ["diskpart",  "/s", path]
>            p = Popen(cmd, shell=True)
>
>The script is meant to loop through twice. It will do so if I comment
>out the Popen call and print cmd instead. But when Popen is called, one
>disk will be formated, but not the next.

What is the value of 'path' ?

Does the command work from a Windows command prompt ?

Dan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to