Ron -
It may also be an issue of how you are calling the script. I have noticed a variation between the info returned with @LDRIVE for Win2K/NT and Win9x systems. The Win9x systems return 'Z:', while the 2K/NT return '\\Server\Netlogon\'. Notice the difference between existence of the trailing '\' on Win2K/NT that does not exist under Win9x. To get around this issue I use a variable to represent the @LDRIVE, removing the trailing '\' from 2K/NT systems.
See below.
Bill

IF (@INWIN = 1)
$CallDrv = (SUBSTR (@LDRIVE, 1, LEN (@LDRIVE)-1)) ; REM ** Removes trailing '\'.
ELSE
$CallDrv = @LDRIVE
ENDIF