@ECHO OFF
G:
CD\DOORS\USURPER
IF EXIST G:\DOORS\USURPER\MAINT.FLG DEL G:\DOORS\USURPER\MAINT.FLG

if %PCBNODE% == 1 Goto Node1
if %PCBNODE% == 2 Goto Node2
if %PCBNODE% == 3 Goto Node3
if %PCBNODE% == 4 Goto Node4
if %PCBNODE% == 5 Goto Node5
if %PCBNODE% == 7 Goto Node7
if %PCBNODE% == 8 Goto Node8
Goto End

:Node1
if %pcbnode% == 1 BNU /L:1=19200
Usurper usurp1.ctl /N1 /M1 /B19200 /PG:\PCB\NODE1
if %pcbnode% == 1 BNU /U
Goto End

:Node2
if %pcbnode% == 2 BNU /L:1=19200
Usurper usurp2.ctl /N2 /M2 /B19200 /PG:\PCB\NODE2
if %pcbnode% == 2 BNU /U
Goto End

:Node3
if %pcbnode% == 3 BNU /L:1=19200
Usurper usurp3.ctl /N3 /M3 /B19200 /PG:\PCB\NODE3
if %pcbnode% == 3 BNU /U
Goto End

:Node4
if %pcbnode% == 4 BNU /L:0=19200
Usurper usurp4.ctl  /N4 /M3 /B19200 /PG:\PCB\NODE4
if %pcbnode% == 4 BNU /U
Goto End

:Node5
if %pcbnode% == 5 BNU /L:1=19200
Usurper usurpe5.ctl /N5 /M3 /B19200 /PG:\PCB\NODE5
if %pcbnode% == 5 BNU /U
Goto End

:Node6
if %pcbnode% == 6 BNU /L:1=19200
Usurper usurpe6.ctl /N6 /M3 /B19200 /PG:\PCB\NODE6
if %pcbnode% == 6 BNU /U
Goto End

:Node7
if %pcbnode% == 7 BNU /L:1=19200
Usurper usurpe7.ctl /N7 /M3 /B19200 /PG:\PCB\NODE7
if %pcbnode% == 7 BNU /U
Goto End

:Node8
if %pcbnode% == 8 BNU /L:1=19200
Usurper usurpe8.ctl /N8 /M3 /B19200 /PG:\PCB\NODE8
if %pcbnode% == 8 BNU /U
Goto End


:End
cd %PCBDIR%
board
