VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Map Network Drive

by rone (9 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 12th April 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Map Network Drive

Rate Map Network Drive



                    ByVal DrivePath As String) As String

                    
   Dim WshNetwork As Object
   Dim Drive_Exists As Boolean
   
   On Error GoTo ErrHandler
   
   Set WshNetwork = CreateObject("Wscript.Network")
   
   Call WshNetwork.MapNetworkDrive(DriveLetter, DrivePath)
   
   Set WshNetwork = Nothing

    Exit Function
    
ErrHandler:
    Set fso = Nothing
    Set WshNetwork = Nothing

    MsgBox " Error Description: " & Err.Description
    
End Function


Download this snippet    Add to My Saved Code

Map Network Drive Comments

No comments have been posted about Map Network Drive. Why not be the first to post a comment about Map Network Drive.

Post your comment

Subject:
Message:
0/1000 characters