Hello,
I need a script that a user can run from the desktop that will remove or disconnect them from a network drive and then use the same letter and map to a different/new location.
From searching the Internet I was able to create these two commands:
Set objNetwork = CreateObject("WScript.Network")objNetwork.RemoveNetworkDrive "O:" , True
Set objNetwork = CreateObject("WScript.Network")objNetwork.MapNetworkDrive "O:" , "\\servername\foldername"
Each command works on it's own. My problem is not know what syntax needs to be added to make this one fluid script.
Thanks,
Scott