home *** CD-ROM | disk | FTP | other *** search
/ Time Riders in American History / TR_AMAZ.BIN / prt.bat < prev    next >
DOS Batch File  |  1994-09-19  |  2KB  |  82 lines

  1. IF %1 == YUKON      GOTO S_YUKON
  2. IF %1 == OTHERNEW   GOTO S_OTHERNEW
  3. IF %1 == OREGONII   GOTO S_OtII
  4. IF %1 == OREGON     GOTO S_OREGON
  5. IF %1 == WRITING    GOTO S_WRITING
  6. IF %1 == AMAZON     GOTO S_AMAZON
  7.  
  8. :S_YUKON        
  9.         more < \dostxt\yukon.txt
  10.         GOTO END_SCREEN
  11. :S_OTHERNEW
  12.         MORE < \dostxt\othernew.txt
  13.         GOTO END_SCREEN
  14. :S_OtII        
  15.         More < \dostxt\oregonii.txt
  16.         GOTO END_SCREEN
  17. :S_OREGON
  18.         more < \dostxt\oregon.txt
  19.         GOTO END_SCREEN
  20. :S_WRITING
  21.         more < \dostxt\writing.txt
  22.         GOTO END_SCREEN
  23. :S_AMAZON
  24.         more < \dostxt\amazon.txt
  25.         GOTO END_SCREEN
  26. :END_SCREEN
  27.         
  28.         @echo.
  29.         @echo.
  30.         @echo.
  31. :again
  32.         ask Would you like to print this file? [Y,N] 
  33.         if errorlevel 90 goto again
  34.         if errorlevel 89 goto OKAY
  35.         if errorlevel 79 goto again
  36.         if errorlevel 78 goto END
  37.         goto again
  38. :okay
  39.         cls
  40.         @echo.
  41.         @echo.
  42.         @echo.
  43.         @echo.
  44.         @echo.
  45.         @echo.
  46.         @echo.
  47.         @echo.
  48.         @echo          Please make sure your printer is ready . . .
  49.         @echo.
  50.         PAUSE
  51.         @echo.
  52.         @echo.
  53. IF %1 == YUKON      GOTO P_YUKON
  54. IF %1 == othernew   GOTO P_OTHERNEW
  55. IF %1 == oregonii   GOTO P_OtII
  56. IF %1 == oregon     GOTO P_OREGON
  57. IF %1 == writing    GOTO P_WRITING
  58. IF %1 == amazon     GOTO P_AMAZON
  59.  
  60. :P_YUKON        
  61.         TYPE \dostxt\yukon.txt >PRN
  62.         GOTO END_PRINT
  63. :P_OTHERNEW
  64.         TYPE \dostxt\othernew.txt >PRN
  65.         GOTO END_PRINT
  66. :P_OTII        
  67.         TYPE \dostxt\oregonii.txt >PRN
  68.         GOTO END_PRINT
  69. :P_OREGON
  70.         TYPE \dostxt\oregon.txt >PRN
  71.         GOTO END_PRINT
  72. :P_WRITING
  73.         TYPE \dostxt\writing.txt >PRN
  74.         GOTO END_PRINT
  75. :P_AMAZON
  76.         TYPE \dostxt\amazon.txt >PRN
  77.         GOTO END_PRINT
  78. :END_PRINT
  79.  
  80. :END
  81.         DEMOME READ
  82.