I have a script that will map about 4 drives. How can I make the script tell me if any of the drives never map? (Sometimes the drive wont map because the user changed the password)
-=This is my code for mapping drives=-
Sub MapDrive(strDrive,strShare)
WSHNetwork.MapNetworkDrive strDrive, strShare
If Err.Number Then
WSHNetwork.RemoveNetworkDrive strDrive
WSHNetwork.MapNetworkDrive strDrive, strShare
End If
End Sub
-=This is my code for mapping drives=-
Sub MapDrive(strDrive,strShare)
WSHNetwork.MapNetworkDrive strDrive, strShare
If Err.Number Then
WSHNetwork.RemoveNetworkDrive strDrive
WSHNetwork.MapNetworkDrive strDrive, strShare
End If
End Sub