This is my script now. Win2k works NT returns Code 1 (incorrect function)

; Setting enviroment variables
;
select
Case @producttype = "Windows XP Professional" $os="WinXP" $subcmd="net use"
Case @producttype = "Windows 2000 Professional" $os="Win2K" $subcmd="net use"
Case @producttype = "Windows NT Workstation" $os="WinNT" $subcmd="subst"
endselect
;
; Home directory Mapping
;
SELECT
;
CASE InGroup ("MT_VIEW\Domain Admins")
$DriveLetter='H'
$UNC='\\dts02\user\@userid'
shell '%comspec% /c $subcmd $DriveLetter: "$UNC" 1>Nul 2>&1'
IF @ERROR = 0
"The H: drive was successfully mapped to the folder " + @userid " on DTS02!"
ELSE
"The H: drive mapping to DTS02 failed! Code @error (@serror)"
ENDIF
;
ENDSELECT