tarnold,

You have the right idea.. Try this..

With your USE statements use a UDF (User-Defined Function).

For example:
code:
 ; -- User presentation display code above

$s = "\\ntmain" ; -- surrounded with quotes
$home = "\\ntmain\home" ; - assumed

; Map drives here
DRVMAP("F:",$home)
DRVMAP("G:","\\ntmain\sys")
DRVMAP("M:",$s+"\mail")
DRVMAP("W:",$s+"\shardata")

DEBUG ON

IF INGROUP("MORTGAGE_GROUP")
DRVMAP("N:",$s+"\MTG")
ENDIF
; -- Other groups

FUNCTION DRVMAP($drv,$share)
IF EXIST($drv)
USE $drv /DELETE /PERSISTENT
ENDIF
USE $drv $share
IF (@error <>0)
? "Error Kix-user: problems during mapping. code (@error) while mapping $drv on $share"
SLEEP 3
ENDIF
ENDFUNCTION

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's