win32wnet.WNetGetConnection

string = WNetGetConnection(connection)

Retrieves the name of the network resource associated with a local device.

Parameters

connection=None : string

A string that is a drive-based path for a network resource. For example, if drive H has been mapped to a network drive share, and the network resource of interest is a file named Sample.doc in the directory \\Win32\\Examples on that share, the drive-based path is H:\\Win32\\Examples\\Sample.doc.