[Python] NetServerDiskEnum in win32net
News M Claveau /Hamster-P
Aug 28, 2003 at 8:49 pm
I try, and i have same result. But, i have no read doc...
: 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: ([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
: 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" wrote in message news:bilh88$rs3$03$1 at news.t-online.com...
: Uwe Becher wrote in message news:... I had the same problem, and to my shame I didn't raise it as a bug, I simply bypassed it (because my DBA needed the info immediately anyway) by using wmi. Have a look at http://tgolden.sc.sabren.com/python/wmi.html and then try something like this: import wmi c = wmi.WMI ("") # or whatever host name for disk in c.Win32_LogicalDisk (DriveType=3): print disk.Caption TJG
: Tim, that did the job, thanks!
How to enum all the users from a windows domain via python win32net module?
Problem with win32net on Windows 2K
[pywin32] windows shares, was os.listdir("\\\\delta\\public")
List domains on a windows network?
python.exe has generated errors
error with win32net, function and unicode
Error including win32net in a Python COM server
win32net problem and question
How to use win32.NetUseGetInfo()
2 of 5
Aug 28, '03 at 6:22p
Aug 29, '03 at 2:51p
4 users in discussion
Uwe Becher (2)
Tim Golden (1)
News M Claveau /Hamster-P (1)
Roger Upole (1)
Groups & Organizations
site design / logo © 2022 Grokbase