home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / PAGEV155.ZIP / RAPSAV10.ZIP / RAPSA.BAT < prev    next >
Encoding:
DOS Batch File  |  1996-03-03  |  3.0 KB  |  109 lines

  1. @echo off
  2. rem:RAPSA v1.0 - RemoteAccess Paging Status Adjuster by Jason Raphael, 2-8-96.
  3. rem:
  4.  
  5. cls
  6. if "%RA%" == "" goto error1
  7. if not exist %RA%\RA.EXE goto error2
  8. if "%1" == "" goto help
  9. goto %1
  10.  
  11. :ERROR1
  12. echo.
  13. echo ■ RAPSA ERROR:
  14. echo   RemoteAccess environment variable not set.  Please set the RA environment 
  15. echo   variable to your RemoteAccess system path, or see RAPSA.DOC for more 
  16. echo   information.  Ex: SET RA=D:\RA
  17. echo.
  18. echo ■ RAPSA ERROR: >>d:\rapsa.err
  19. echo   RemoteAccess environment variable not set.  Please set the RemoteAccess >>d:\rapsa.err
  20. echo   environment variable to your RemoteAccess system path, or see RAPSA.DOC >>d:\rapsa.err
  21. echo   for more information.  Ex: SET RA=D:\RA >>d:\rapsa.err
  22. pause
  23. goto end
  24.  
  25. :ERROR2
  26. echo.
  27. echo ■ RAPSA ERROR:
  28. echo   RemoteAccess environment variable set incorrectly.  Please set 
  29. echo   the RA environment variable to your RemoteAccess system path, or see 
  30. echo   RAPSA.DOC for more information.  Ex: SET RA=D:\RA
  31. echo.
  32. echo ■ RAPSA ERROR: >>d:\rapsa.err
  33. echo   RemoteAccess environment variable set incorrectly.  Please set >>d:\rapsa.err
  34. echo   the RA environment variable to your RemoteAccess system path, or see >>d:\rapsa.err
  35. echo   RAPSA.DOC for more information.  Ex: SET RA=D:\RA >>d:\rapsa.err
  36. pause
  37. goto end
  38.  
  39. :ERROR3
  40. echo.
  41. echo ■ RAPSA ERROR:
  42. echo   At least one of the RAPSA system files are not located in your
  43. echo   RemoteAccess system directory.  Please make sure that RAPSA.BAT, PAGEON,
  44. echo   PAGEOFF, and PAGEHRS are in your RA system directory.
  45. echo.
  46. echo ■ RAPSA ERROR: >>d:\rapsa.err
  47. echo   At least one of the RAPSA system files are not located in your >>d:\rapsa.err
  48. echo   RemoteAccess system directory.  Please make sure that RAPSA.BAT, PAGEON, >>d:\rapsa.err
  49. echo   PAGEOFF, and PAGEHRS are in your RA system directory. >>d:\rapsa.err
  50. pause
  51. goto end
  52.  
  53. :?
  54. cls
  55. echo.
  56. echo ■ RAPSA v1.0
  57. echo.
  58. Choice Turn paging ON, OFF, use paging HOURS, or ABORT /C:NFHA
  59. If errorlevel 4 goto abort
  60. If errorlevel 3 goto hrs
  61. If errorlevel 2 goto off
  62. If errorlevel 1 goto on
  63. goto end
  64.  
  65. :OFF
  66. del %RA%\pagestat.ra
  67. echo 2>>%RA%\pagestat.ra
  68. cls
  69. echo.
  70. echo ■ Paging is now off.
  71. echo.
  72. goto end
  73.  
  74. :ON
  75. del %RA%\pagestat.ra
  76. echo 3>>%RA%\pagestat.ra
  77. cls
  78. echo.
  79. echo ■ Paging is now on.
  80. echo.
  81. goto end
  82.  
  83. :HRS
  84. del %RA%\pagestat.ra
  85. echo 1>>%RA%\pagestat.ra
  86. cls
  87. echo.
  88. echo ■ Paging hours will now be used.
  89. echo.
  90. goto end
  91.  
  92. :HELP
  93. echo ■ No commandline parameters specified.  Syntax:
  94. echo.
  95. echo RAPSA ON (Toggles paging on)
  96. echo RAPSA OFF (Toggles paging off)
  97. echo RAPSA HRS (Uses paging hours as defined in RACONFIG)
  98. echo RAPSA ? (Allows you to select from a menu)
  99. echo.
  100. goto end
  101.  
  102. :ABORT
  103. cls
  104. echo.
  105. echo ■ Aborted.
  106. echo.
  107.  
  108. :END
  109.