@echo off

REM  This is a sample BOARD.BAT for users of Prologon by Samuel Smith
REM  Thanks to Mark Downing of The Stand BBS for creating this Batch
REM  file.

c:
cd\pcb
if exist event.bat rename event.bat event.sys
if exist remote.bat rename remote.bat remote.sys
if exist door.bat del door.bat

REM *** THE LINES BELOW PERTAIN TO DDOOR ***
ddcheck > nul
if errorlevel 1 goto runpcb1
cd\pcb\doors
ddoor ddoor.cnf c:\pcb
SET PCBDOOR=
cd\pcb
$ddoor
:runpcb1
if exist $ddoor.bat del $ddoor.bat
REM *** THE LINES ABOVE PERTAIN TO DDOOR ***

recycle >NUL
if errorlevel 1 goto runpcb
copy prodoor door.bat >nul
door N
:runpcb
if exist $door.bat del $door.bat

set extuser=c:\pcb\prod\extuser
e:\prolon prolon.cnf c:\pcb

if exist door.bat door
if exist remote.bat remote
if exist event.bat event
if exist endpcb goto end
board

:end
if exist endpcb del endpcb
echo Type BOARD to restart system
goto exit
:exit
