home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / xbbsos2.zip / bbs.cmd < prev    next >
OS/2 REXX Batch file  |  1995-01-22  |  1KB  |  57 lines

  1. @echo off
  2. rem
  3. rem sample cmd file to invoke XBBS
  4. rem it's recommended that you use a .CMD file to run XBBS, and that
  5. rem you set AUTOFAIL=YES in CONFIG.SYS so that, if the BBS crashes,
  6. rem it'll automatically restart itself.
  7. rem
  8. rem edit this file as required.
  9. rem
  10. rem turn help off
  11. rem
  12. call help off
  13. rem
  14. rem switch to BBS drive and directory
  15. rem
  16. @echo on
  17. E:
  18. CD\XBBS2
  19. rem
  20. rem since you were probably dumb enough to run this without checking
  21. rem the paths set above, I'll check for you...
  22. rem
  23. @echo off
  24. if not exist XBBS3.EXE goto Error
  25. rem
  26. rem make window small for esthetics; it'll minimize later...
  27. rem
  28. mode co80,5
  29. rem
  30. rem we loop here...
  31. rem
  32. :over
  33. rem
  34. rem %1 = number of lines to start up (default 1)
  35. rem %2 = number of lines to skip (default 0)
  36. rem xbbs3 %1 %2
  37. rem
  38. rem following mode statement to turn com2 ns16550afn buffering on
  39. rem
  40. mode com2:19200,n,8,1,buffer=on
  41. rem
  42. xbbs3 2 1
  43. rem
  44. rem set autofail=yes in config.sys and even if the bbs
  45. rem crashes, it comes right back up.
  46. rem
  47. echo Recycling...
  48. rem
  49. rem give us time to hit ^C to stop the cycle...
  50. rem
  51. delay 1
  52. if errorlevel == 255 goto end
  53. goto over
  54. :Error
  55. echo XBBS3.EXE isn't in the default directory.  I'm shuttin' down.
  56. :end
  57.