I have the following code in a Visaul Basic 6.0 program for mapping to a network drive:
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive driveLetter,fullPath, bPersistent, userName, password
driveLetter will be searched at run time, all other parameter values will...