codice:C:\Python24>python.exe Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import popen2 >>> cmd = popen2.popen4('dir C:\\') >>> print cmd[0].read() Il volume nell'unità C è Windows Numero di serie del volume: F0E0-8B27 Directory di C:\ 13/05/2006 18.49 <DIR> .idlerc 03/11/2005 16.19 0 AUTOEXEC.BAT 15/12/2005 09.00 11.966.065 AVG7QT.DAT 03/11/2005 16.19 0 CONFIG.SYS 03/12/2005 18.41 <DIR> Documents and Settings 03/11/2005 16.26 <DIR> mgafold 27/11/2005 20.41 <DIR> nmap 03/11/2005 16.20 <DIR> Program Files 29/06/2006 10.19 <DIR> Programmi 02/06/2006 18.11 <DIR> Python24 24/07/2006 09.44 <DIR> WINDOWS 3 File 11.966.065 byte 8 Directory 6.492.270.592 byte disponibili