Connect or disconnect a network drive
Connect or disconnect a network drive
API Declarations
(ByVal hwnd As Long, ByVal dwType As Long) As Long
Private Declare Function WNetDisconnectDialog Lib "mpr.dll" (ByVal hwnd As Long, ByVal dwType As Long) As Long
Rate Connect or disconnect a network drive
(2(2 Vote))
'Connect Network Drive
xyz = WNetConnectionDialog(Me.hwnd, 1)
End Sub
Private Sub Command2_Click()
'Disconnect Network Drive
xyz = WNetDisconnectDialog(Me.hwnd, 1)
End Sub
Connect or disconnect a network drive Comments
No comments yet — be the first to post one!
Post a Comment