NetServerDiskEnum in win32net

Roger Upole rupole at hotmail.com
Fri Aug 29 04:13:14 CEST 2003


There's a bug in this function.  (also a related memory leak)
I've been meaning to submit a patch for it, but I hadn't heard
anybody else complain about it yet.
       Roger


"Uwe Becher" <ubecher at gmx.net> wrote in message
news:bilh88$rs3$03$1 at news.t-online.com...
> I try to get all logical drives of a remote machine (WinNT or W2K) and
> get a result, that gives me the expected total but not all expected
drives.
>
> Example:
>
>  >>> win32net.NetServerDiskEnum('nor1w020', 0) gives me:
> ([u'A:', u'', u'C:', u'', u'D:', u'', u'E:', u''], 8, 0)
>
> while the machine has the local drives
> A: C: D: E: F: G: H: Z:
> A: - Floppy
> Z: - CDROM
> All others are harddisk partitions on two physical drives
>
> Does anyone have an idea?
>
> Thanks
> Uwe
>






More information about the Python-list mailing list