My company has over 15 remote sites with a BDC at each location. Each location has a user group with the name of that loaction i.e. Appleton WI has a group called "Appleton", that everyone in the Appleton location is a member of. So in my script I have a SELECT ... CASE ... statment like this...
code:
SELECET
CASE INGROUP("Appleton")
$SERVER = "\\APPFP1NT"
? "[ Your Logon Server is = ( " + $SERVER + " ) ]"
? "[ Mapping H: to Users on ( " + $SERVER + " ) ]"
USE H: $SERVER + "\users"
? "[ Mapping P: to Data on ( " + $SERVER + " ) ]"
USE P: $SERVER + "\Data"
;==========================================================
CASE INGROUP("Agawam")
$SERVER = "\\APPFP1NT"
? "[ Your Logon Server is = ( " + $SERVER + " ) ]"
;==========================================================
CASE INGROUP("Cary")
$SERVER = "\\CARBDC1NT"
? "[ Your Logon Server is = ( " + $SERVER + " ) ]"
? "[ Mapping H: to Users on ( " + $SERVER + " ) ]"
USE H: $SERVER + "\users"
;==========================================================
CASE INGROUP("Cedar Falls")
$SERVER = "\\CEDFP1NT"
? "[ Your Logon Server is = ( " + $SERVER + " ) ]"
? "[ Mapping H: to CEDUsers on ( " + $SERVER + " ) ]"
USE H: $SERVER + "\CEDusers"
? "[ Mapping P: to CEDData on ( " + $SERVER + " ) ]"
USE P: $SERVER + "\CEDData"
;==========================================================
...
and so on...
...
ENDSELECT
...
Blah, blah, blah
...
;==========================================================
;Norton Virus Definition Update (using '$SEVER' var set from above)
;==========================================================
:NAV
? "[ Checking for AntiVirus Update ]"
$NAVFILE = Dir($SERVER + "\netlogon\_auxfiles\*x86.exe")
IF EXIST("C:\NAV") = 0
MD "C:\NAV"
ENDIF
IF EXIST("C:\NAV\" + $NAVFILE + ".log") = 0
DEL "C:\NAV\*.log"
$RC = OPEN(1,"C:\NAV\" + $NAVFILE + ".log",5)
$RC = WRITELINE(1,"Your NAV Definitions were updated with.... " + $NL)
$RC = WRITELINE(1,"[ " + $NAVFILE + " ] at [ " + @TIME + " " + @DATE + " ]")
$RC = CLOSE(1)
? "[ Updating AntiVirus with ( " + $NAVFILE + " ) ]"
RUN $SERVER + "\netlogon\_auxfiles\" + $NAVFILE + " /q"
ELSE
? "[ Your AntiVirus Definitions are up to date ]"
ENDIF

Rocco - trying to be of some help. [Smile]
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro