home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / OP2EXE2.ZIP / DOBBS.CMD < prev    next >
OS/2 REXX Batch file  |  1991-03-12  |  2KB  |  73 lines

  1. echo off
  2. cls
  3. rem ********************************************************************
  4. rem
  5. rem    Omega Point/2 Bulletin Board System
  6. rem    Copyright (c) ExcelSoft 1991
  7. rem    Startup CMD File, version 1.1
  8. rem    cab  13mar90
  9. rem    cab   2feb91
  10. rem
  11. rem ******************************************************************** 
  12. echo Omega Point/2 Bulletin Board Software
  13. echo Startup Batch File
  14. echo Copyright (c) ExcelSoft Software 1990
  15. rem *******
  16. :START
  17. echo Loading Main Program...
  18. bbs
  19. if errorlevel 99 goto PROTVIOL
  20. if errorlevel 98 goto PGMTERMINATE
  21. if errorlevel 97 goto HARDERROR
  22. if errorlevel 96 goto PIPEEXIT
  23. if errorlevel 95 goto TIMERQUIT
  24. if errorlevel 94 goto SYSOPRESET
  25. goto USEREXIT
  26. rem
  27. rem  This code will be called if the user terminated the program
  28. rem  normally.
  29. rem
  30. :USEREXIT
  31. echo BBS Terminated Normally By User. Exiting...
  32. goto END
  33. rem
  34. rem  PROTVIOL - executed if the main program is terminated due
  35. rem  to an OS/2 protection violation.
  36. rem
  37. :PROTVIOL
  38. echo BBS Terminated Due To Protection Fault. Restarting...
  39. goto START
  40. rem
  41. rem  PGMTERMINATE - executed if program terminated by parent, most
  42. rem  often the PM desktop
  43. rem
  44. :PGMTERMINATE
  45. echo BBS Terminated By Parent Process. Exiting...
  46. goto END
  47. rem
  48. rem  HARDERROR - program terminated due to a hardware failure, such
  49. rem  as disk not ready. Batch file aborts on this error.
  50. rem
  51. :HARDERROR
  52. echo BBS Terminated Due To Hardware Error. Aborting.
  53. goto END
  54. :PIPEEXIT
  55. rem *** This code is executed when BBSSEND.EXE is used to send an
  56. rem *** exit request to the BBS. You may want to set this up
  57. rem *** to either exit the BBS, or recycle.
  58. goto END
  59. :TIMERQUIT
  60. echo BBS Terminated By Timer...
  61. rem *** This code is executed when the BBS is started with the
  62. rem *** "-s time" option. It can either be used to terminate the
  63. rem *** bbs, or to restart it. Example: BBS -s 0300  would cause
  64. rem *** the bbs to exit at 3am and execute this section of code..
  65. goto START
  66. :SYSOPRESET
  67. echo BBS Terminated by SysopReset...
  68. rem *** called when MCF function SYSOPRESET is executed. Can be
  69. rem *** by used by remote sysops to reset the system.
  70. goto START
  71. :END
  72.  
  73.