|| at Dec 7, 2004 at 9:32 am
Something like this is what I think you are looking for:
from win32com.client import Dispatch
theNetwork = Dispatch("WScript.Network")
mappedNetDrives = theNetwork.EnumNetworkDrives
for netDrive in mappedNetDrives():
Should give you some ideas anyway.
On 6 Dec 2004, at 11:04, Tim Golden wrote:
how to get list of shares using pywin32?
You want to be looking at the NetShareEnum function
in the win32net module.
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:http://www.star.net.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 991 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-list/attachments/20041207/30aedbfc/attachment.bin