[pywin32] windows shares, was os.listdir("\\\\delta\\public")
doran_dermot at emc.com
Tue Dec 7 10:32:10 CET 2004
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:
> [Egor Bolonev]
> | 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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 1048 bytes
Desc: not available
More information about the Python-list