still running an old version of kix so the UDFthingy won't work.

Several departments have multiple class C's
DeptA
10.32.1
10.32.2
10.32.3

DeptB
10.32.4

etc

so...

code:
:SetUniversalVars
$oct1 = LTRIM(SUBSTR(@ipaddress0, 1, 3))
$oct2 = LTRIM(SUBSTR(@ipaddress0, 5, 3))
$oct3 = LTRIM(SUBSTR(@ipaddress0, 9, 3))
$classB = $oct1 + "." + $oct2
$classC = $oct1 + "." + $oct2 + "." + $oct3

:GroupDetect
select
case @primarygroup = "deptA"
;mapdrive, set vars, yaddayadda
$arraytotal = 3
DIM $subnet[$arraytotal]
$subnet[0] = 10.32.1
$subnet[1] = 10.32.2
$subnet[2] = 10.32.3
goto "techstuff"
case @primarygroup = "deptB"
;mapdrive, set vars, yaddayadda
$arraytotal = 1
DIM $subnet[$arraytotal]
$subnet[0] = 10.32.4
goto "techstuff"
case 1
endselect

:TechStuff
;--- inventory ---
$nb = 0
DO
if $ClassC = $subnet[$nb]
call "inventory.kix"
endif
$nb = $nb + 1
UNTIL $nb = $arraytotal
;--- set email profiles, citrix setings, Ras detect, etc ---

Think that's simple enough?

Thanks,
Chris

[ 01. October 2002, 18:52: Message edited by: Manimal ]
_________________________
Chris Fricke
Clackamas County