After I removed the "$t = "Connecting drive I:" GOSUB text" statement from the command - it mapped the drive correctly.
Could any one please describe what that statement do . Thanks. Mathew

IF INGROUP ("sales") = 1
$t = "Connecting drive I:" GOSUB text
USE I: /DELETE
USE I: "\\myt-1001\sales" GOSUB err