home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / vrac / mmenu10b.zip / MENU.BAT < prev    next >
DOS Batch File  |  1994-07-24  |  1KB  |  73 lines

  1.    @ECHO OFF
  2.  
  3.    REM  This is the batch file that runs MultiMenu.
  4.  
  5. :LOOP
  6.  
  7.    REM  Edit the file paths on the following 2 lines to suit your system.
  8.  
  9.    CD C:\MMENU
  10.    MMENU  C:\BBS\DOOR.SYS  MMENU.CFG
  11.  
  12.  
  13.    REM  MultiMenu exits with ErrorLevel 255 if there is a MultiMenu error.
  14.    REM  MultiMenu exits with ErrorLevel 255 if carrier drop or timeout.
  15.  
  16.    IF ERRORLEVEL 255 GOTO END
  17.  
  18.    IF ERRORLEVEL 9 GOTO DOOR9
  19.    IF ERRORLEVEL 8 GOTO DOOR8
  20.    IF ERRORLEVEL 7 GOTO DOOR7
  21.    IF ERRORLEVEL 6 GOTO DOOR6
  22.    IF ERRORLEVEL 5 GOTO DOOR5
  23.    IF ERRORLEVEL 4 GOTO DOOR4
  24.    IF ERRORLEVEL 3 GOTO DOOR3
  25.    IF ERRORLEVEL 2 GOTO DOOR2
  26.    IF ERRORLEVEL 1 GOTO DOOR1
  27.  
  28.    REM  MultiMenu exits with ErrorLevel 0 during a normal exit.
  29.    IF ERRORLEVEL 0 GOTO END
  30.  
  31.    REM If you run any batch files below, use the DOS CALL command.
  32.    REM Example: CALL DOOR1.BAT
  33.  
  34. :DOOR1
  35.    REM Place Door 1 Commands Here
  36.    GOTO LOOP
  37.  
  38. :DOOR2
  39.    REM Place Door 2 Commands Here
  40.    GOTO LOOP
  41.  
  42. :DOOR3
  43.    REM Place Door 3 Commands Here
  44.    GOTO LOOP
  45.  
  46. :DOOR4
  47.    REM Place Door 4 Commands Here
  48.    GOTO LOOP
  49.  
  50. :DOOR5
  51.    REM Place Door 5 Commands Here
  52.    GOTO LOOP
  53.  
  54. :DOOR6
  55.    REM Place Door 6 Commands Here
  56.    GOTO LOOP
  57.  
  58. :DOOR7
  59.    REM Place Door 7 Commands Here
  60.    GOTO LOOP
  61.  
  62. :DOOR8
  63.    REM Place Door 8 Commands Here
  64.    GOTO LOOP
  65.  
  66. :DOOR9
  67.    REM Place Door 9 Commands Here
  68.    GOTO LOOP
  69.  
  70.  
  71. :END
  72.  
  73.