---------------------------------
Private Declare Function WNetGetConnection Lib "mpr.dll" Alias "WNetGetConnectionA" (ByVal lpszLocalName As String, ByVal lpszRemoteName As String, cbRemoteName As Long) As Long
Private Sub Command1_Click()
Dim Buf As String * 256, l As Long
l = 255
WNetGetConnection "s:", Buf, l
MsgBox "Full path: " & Left$(Buf, l)
End Sub
---------------------------------- Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'