Syntax |
Net.GetCon$(localname$) |
Description |
Returns the name of the network resource associated with the specified redirected local device. |
Comments |
The localname$ parameter specifies the name of the local device, such as "LPT1" or "D:". The function returns a zero-length string if the specified local device is not redirected. A runtime error will result if no network is present. |
Example |
This example finds out where drive Z is mapped. Sub Main() NetPath$ = Net.GetCon$("Z:") MsgBox "Drive Z is mapped as " & NetPath$ End Sub |
See Also |
Net.CancelCon (method); Net.AddCon (method). |
N |