os.system question

stanleyxu no_reply at microsoft.com
Fri Dec 28 17:24:33 EST 2007


> 
> import subprocess
> 
> output = subprocess.Popen('MD "' + new_folder + '"', shell=True,
>     stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
> print output
> 
> 
> Carl Banks

Thanks Carl, it works ^^)

-- 
        ___
   oo  // \\
  (_,\/ \_/ \     Xu, Qian
    \ \_/_\_/>      stanleyxu2005
    /_/   \_\



More information about the Python-list mailing list