@echo off
rem  * Sample DOORS file for PCBoard to use BrFreq,
rem  * Base Runners User request DOOR

rem  * Only if you have problems with users
rem  * FOLLOWING the one who logged off in the
rem  * door getting the BYE stuffed into their
rem  * keyboard buffer!
rem  del d:\br\pcbstuff.kbd

rem  * Run it from the current nodes directory, alter to suit your paths
d:\br\brfreq.exe

rem  * Make sure we are on OUR PCB drive
%PCBDRIVE%
rem  * Make sure we are in the right directory
cd %PCBDIR%

rem  * Node traps for returns, add as many as you need
rem  * If you have alternate bat file names, this is helpful
if (%PCBNODE%)==(2) goto node2out
if (%PCBNODE%)==(3) goto node3out

rem  * Fallthrough
board

rem  * OOOPS, major error
goto end

rem  * Normal node exits, as many as you need or one generic one
:node2out
g:
cd \pcb
call BOARD.BAT

:node3out
g:
cd \pcb3
call BOARD.BAT

:end


rem  * Of course there are MANY variations on this. It is only to serve
rem  * as an example to help you.
