Thanks for the response Shawn. Just using the "IF" statement. Here is a sample of my code:

code:
$Drive="f"
$Share="\\darla\statements"

If InGroup (HOUBANK)

If InGroup ("HOUBANK")
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIf

$Drive="j"
$Share="\\darla\HOUBANK"

If InGroup ("HOUBANK")
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIf

$Drive="r"
$Share="\\buckwheat\ri"

If InGroup ("HOUBANK")
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIf

$Drive="f"
$SHARE="\\darla\statements"

If InGroup (Accounting)

; input time synchronization command
If InGroup("accounting")
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIf

$Drive="k"
$Share="\\darla\cos"

If InGroup("accounting")
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIf

$Drive="l"
$Share="\\darla\data"

If InGroup("accounting")
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIf

$Drive="s"
$Share="\\stymie\Program Files"

If InGroup("accounting")
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIf

This is replicated on down for each department respectively.

Thanks for the help

(MCA: correct layout)

[ 05. December 2002, 01:20: Message edited by: MCA ]