@echo off
if exist remote.bat rename remote.bat remote.sys
if exist event.bat rename event.bat event.sys
if exist door.bat del door.bat
if exist endpcb del endpcb


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

PCBOARD %1
if exist remote.bat remote
if exist door.bat door
if exist event.bat event
if exist endpcb goto end
board
:end
