Hello,
I would like to do a simple task that entails checking to see if a specific drive mapping exists, remove that mapping, and then re-map those letters to a new path. Does anyone know how this can be done in VBscript? It is probably better explained in this pseudo code...
If Network drive (z: and y exists then
removenetworkdrive "z:"
removenetworkdrive "y:"
mapnetworkdrive "z:" "\\UNC\Path"
mapnetworkdrive "y:" "\\UNC\Path2"
else
mapnetworkdrive "z:" "\\UNC\Path"
mapnetworkdrive "y:" "\\UNC\Path2"
end if
Thanks,
sheel
I would like to do a simple task that entails checking to see if a specific drive mapping exists, remove that mapping, and then re-map those letters to a new path. Does anyone know how this can be done in VBscript? It is probably better explained in this pseudo code...
If Network drive (z: and y exists then
removenetworkdrive "z:"
removenetworkdrive "y:"
mapnetworkdrive "z:" "\\UNC\Path"
mapnetworkdrive "y:" "\\UNC\Path2"
else
mapnetworkdrive "z:" "\\UNC\Path"
mapnetworkdrive "y:" "\\UNC\Path2"
end if
Thanks,
sheel