Hey Thanks to you both, I figured it out from both of your inputs. Correct Syntax below:
code:
SELECT
CASE InGroup("Group")
$Drive="drive letter"
$SHARE="\\servername\share"
? "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="drive letter"
$Share="\\servername\share"
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIF
ENDSELECT
FYI for other novices; Each "GROUP" must have only a single CASE statement following the SELECT statemet with all the subsequent drive mappings underneath. Only use the "ENDSELECT" statement at the very end of your script.
Once Again, Thanks to All!
{edit} Bullock - added code tags.
[ 10. September 2002, 21:35: Message edited by: Howard Bullock ]