home *** CD-ROM | disk | FTP | other *** search
- echo off
- REM - this will bring BBS up without initializing the TNC and ports,
- REM - it assumes MBBIOS is already in place, if not it will jump to
- REM - ROSEBBOT and re-init the sequence
- c:
- cd \pbbs
- set TZ=EST5
- set ED=E
- :MAINLOOP
- roseboot -c config.rs
- IF ERRORLEVEL 100 goto END
- IF ERRORLEVEL 50 goto BACKUP
- IF ERRORLEVEL 21 goto REBOOT
- IF ERRORLEVEL 20 goto DOORS
- IF ERRORLEVEL 11 goto BOOTPBBS
- IF ERRORLEVEL 1 goto END
- REM - you may want to make this "goto END" so an X command from LOCAL CONSOLE
- REM will take you out to DOS
- goto MAINLOOP
- :DOORS
- doorway SYS /o: /r:^x /G:ON /F: /s:c:\pbbs /A:ON /c:dos
- :BOOTPBBS
- mbbios/u
- mbbios
- roseboot -ic config.rs
- goto MAINLOOP
- REM - you may want to make this "goto END" so an X command from LOCAL CONSOLE
- REM will take you out to DOS
- goto MAINLOOP
- :REBOOT
- boot
- REM - this has no exit, system will re-boot
- :BACKUP
- erase mailbak5.dat
- erase userbak5.dat
- ren ????bak4.dat ????bak5.dat
- ren ????bak3.dat ????bak4.dat
- ren ????bak2.dat ????bak3.dat
- ren ????bak1.dat ????bak2.dat
- ren ????bak0.dat ????bak1.dat
- copy mail.dat mailbak0.dat
- copy user.dat userbak0.dat
- goto MAINLOOP
- :PRMBERR
- echo MAJOR SYSTEM ERROR
- :END