Hi there!
You are right, I forgot the /persistent in my previous post. I tryed to enter manual command in the debug mode and I created a UDF but I always obtain the same result. Most of our station here was using Novell client in the past but we de-install them... I wonder if this may be the source of the problem... I will install a fresh NT4.0 and test it...
Here is one example of the code I was using before today.
:SiteMapping
; REM -- Custom Site Drive mapping routine Montreal
DriveID = "K:"
$PathID = "\\monmmax1\data"
GOSUB MapDrive ; ** Map the ... drive to K:
:MapDrive
; REM -- Map Drive (Used in DriveMapping)
USE $DriveID /delete /PERSISTENT
USE $DriveID $PathID
IF @ERROR = 0
?
? $DriveID " Drive successfully mapped to " $PathID
ELSE
BEEP
?
? "ERROR: " $DriveID " DRIVE MAPPING TO " $PathID " UNSUCCESSFUL,"
? "PLEASE CONTACT YOUR NETWORK ADMINISTRATOR. "
? "(Press any key to continue)"
GET $key
ENDIF
RETURN
_________________________
Sphinx
------------------------
A life full of Mysteries