home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / bsys098b.zip / DOOR.CMD < prev    next >
OS/2 REXX Batch file  |  1993-12-16  |  1KB  |  52 lines

  1. @ECHO OFF
  2. GOTO START
  3. |
  4. | Here you should put commands to start doors!
  5. |
  6. |   %1 & %2 - Node number
  7. |   %3      - Com port
  8. |   %4      - Port speed (/100)
  9. |   %5      - Port base address
  10. |   %6      - Port irq vector
  11. |   %7      - Door name/number
  12. |   %8      - Area-code of area which door belong to
  13. |
  14. | Example-call: DOOR.CMD 3 003 1 192 03F8 3 1 MAIN
  15. |
  16. | Copy the NODESTAT file from your RAM-DISK to your MAIN directory.
  17. | Run STATCONV program to support PCBoard doors.
  18. |
  19. :START
  20. COPY F:\NODESTAT MAIN >NUL
  21. UTILCOLL/STATCONV %1 >NUL
  22. COPY MAIN\PCBOARD.* TEMP.%2 >NUL
  23. DEL MAIN\PCBOARD.* >NUL
  24.  
  25. IF "%8"=="MAIN" GOTO MAIN_DOORS
  26.  
  27. GOTO END
  28. |
  29. | Each area must have its own IF section like the one below.
  30. |
  31. :MAIN_DOORS
  32. IF "%/"=="1" GOTO MAIN1
  33. GOTO END
  34. |
  35. | From here you write the command needed to start your doors.
  36. |
  37. :MAIN1
  38. KING.EXE %3 %4
  39. GOTO END
  40. |
  41. | All doors should "GOTO END" after exiting
  42. |
  43. | Restore current-drive/directory
  44. | Delete STATCONV files
  45. |
  46. :END
  47. D:
  48. CD\"B&BSYS"
  49. DEL TEMP.00%1\PCBOARD.*
  50. DEL TEMP.00%1\USERS
  51. CLS
  52.