Hi Tim,

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():
print netDrive


Should give you some ideas anyway.

Cheers!!

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.

TJG

________________________________________________________________________
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
________________________________________________________________________
--
http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to