Kerry,We are using Quantum Snap Servers in our lab to mimic the structure of our production environment. As such, I’ve run into the same problem as you have – sometimes the drives just don’t map. To fix it, I created a loop. If the drive fails to map, it informs you of this with a message box.
Of course, you can always delete the message box if your users don’t like it, and you can increase the number of repetitions if you are still having problems. I’ve found, however, that it usually only takes a few tries to get it mapped, and I never see the message box unless the Snap Server is off-line.
Here’s the code for my loop:
_________________
$count = 0
;Map X Drive
do
$mapped = "0"
$count = $count + 1
If $count = "10"
$Window = MessageBox("X Drive Server not available or drive is already mapped.", "ERROR.", 0)
$count = 0
$mapped = "1"
Else
use X: \\snaplab\xdrive
If @error = 0
$mapped = "1"
EndIf
EndIf
until $mapped = "1"
__________________
Hope that helps,
Ryan