FAQ
[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
________________________________________________________________________

Search Discussions

  • Dermot Doran at Dec 7, 2004 at 9:32 am
    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
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: text/enriched
    Size: 991 bytes
    Desc: not available
    Url : http://mail.python.org/pipermail/python-list/attachments/20041207/30aedbfc/attachment.bin

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedDec 6, '04 at 10:04a
activeDec 7, '04 at 9:32a
posts2
users2
websitepython.org

2 users in discussion

Tim Golden: 1 post Dermot Doran: 1 post

People

Translate

site design / logo © 2022 Grokbase