@echo off

if exist event.bat del event.bat

ProBBS %1

if errorlevel 90 goto DOOR
if errorlevel 89 goto END
if errorlevel 88 goto EVENT

board


:EVENT
copy event.sys event.bat >nul
event
board

:DOOR
copy prodoor door.bat >nul
door %1
board

:END
