hsingh1981
Programmer
Hi all i have this code which i got from this website was really helpful. How do i tweak it so that if the drive requests for username and password?
many thanks
Code:
Set WshNetwork = CreateObject("WScript.Network")
On Error Resume Next
WshNetwork.RemoveNetworkDrive "L:", True
On Error GoTo 0
WshNetwork.MapNetworkDrive "L:", "\\gstq1\cvutils" 'HardDrive"
Set WshNetwork = Nothing
many thanks