Hi Kevin,
First, thanks for yoyur kind words.
Keep in mind that RemoveNetoworkDrive will generate an error if letter isn't mapped. You can use EnumNetworkDrives method to loop through existing network drives.
lcDriveLetter = "V:"
oDrives = oNet.EnumNetworkDrives()
FOR i=oDrives.Count-1 TO 0 STEP -2
IF oDrives.Item(i-1) = lcDriveLetter
oNet.RemoveNetoworkDrive(lcDriveLetter)
EXIT
ENDIF
ENDFOR
>
> This is exactly what I needed. I have seen you on here helping a lot of people. I hope everyone really appreciates what you do for them, I know I do. One thing I would like to note in case someone else notices this and wants to know how to do this as well, is that it seems it will error if you try to map a drive to a different location if it is already mapped elsewhere. When using the Wscript.Network class, my autofill showed me there was a oNet.RemoveNetoworkDrive("DRIVELETTER") as well, so I guess it would be advisible to do this first to make sure the drive is clear before trying to map it elsewhere. Also, I guess the reason I selected Client/Server as the subject is because I will be initiating the code from client computers to connect to a network drive on the server.
>
>Thanks Again
--sb--