@echo off
rem Remove the @ if you're not running DOS 3.3 or later.
rem QuickBBS batch file incorporating CBV for networked systems

:start
mailer
if errorlevel 24 goto 2400
if errorlevel 12 goto 1200
if errorlevel 3 goto 300
if errorlevel 1 goto local
goto quit

:2400
quickbbs -b2400 -e0
if errorlevel 10 goto cbv
goto start

:1200
quickbbs -b1200 -e0
if errorlevel 10 goto cbv
goto start

:300
quickbbs -b300 -e0
if errorlevel 10 goto cbv
goto start

:local
quickbbs -l -e0
if errorlevel 10 goto cbv
goto start

:restart
quickbbs -r -e0
if errorlevel 10 goto cbv
goto start

:cbv
cbv
if errorlevel 1 goto restart
goto start

:quit
