home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / LASRM512.ZIP / PRINTDOC.BAT < prev    next >
DOS Batch File  |  1993-11-08  |  7KB  |  118 lines

  1. @echo off
  2.         goto START
  3.  ╔═════════════════════════════════════════════════════════════════════╗
  4.  ║  PRINT THE LASR_MAN DOCUMENTATION AND THEN OPTIONALLY ERASE IT      ║
  5.  ║                                                                     ║
  6.  ║    This routine will either copy the LASR_MAN documentation file    ║
  7.  ║    to the printer or setup LASR_MAN to print it.                    ║
  8.  ║                                                                     ║
  9.  ║   Copyright 1993, MicroMetric, All Rights Reserved                  ║
  10.  ╚═════════════════════════════════════════════════════════════════════╝
  11. :START
  12.         if NOT EXIST lasr_man.doc goto NODOC
  13.         cls
  14.         echo ╔═══════════════════════════════════════════════════════════════════════════╗
  15.         echo ║         LASR_MAN SHAREWARE DOCUMENTATION PRINT METHOD SELECTION           ║
  16.         echo ╠═══════════════════════════════════════════════════════════════════════════╣
  17.         echo ║  Set up to print the LASR_MAN documentation in the following manner...... ║
  18.         echo ╟───────────────────────────────────────────────────────────────────────────╢
  19.         echo ║  1. Copy to printer - uses DOS COPY and should work with any type printer ║
  20.         echo ║     one text page/sheet of paper (will print about 150 sheets)            ║
  21.         echo ║       █▌The following methods require a HP LaserJet IIP printer or higher▐║
  22.         echo ║       █▌(or compatible). The documentation will be printed by LASR_MAN▐███║
  23.         echo ║       █▌with each paper sheet being printed on one side only.▐████████████║
  24.         echo ║  2. 1 page/sheet (150)                                                    ║
  25.         echo ║  3. 2 pages/sheet (75)                                                    ║
  26.         echo ║  4. 4 pages/sheet (38)                                                    ║
  27.         echo ║  5. 8 pages/sheet (19)                                                    ║
  28.         echo ║       █▌The following methods require a HP LaserJet IIP/higher, LASR_MAN,▐║
  29.         echo ║       █▌pamphlet form, each sheet will need to be printed on both sides.▐█║
  30.         echo ║  6. 4 pages/sheet (38)                                                    ║
  31.         echo ║  7. 8 pages/sheet (19)                                                    ║
  32.         echo ║  8. 16 pages/sheet (10)                                                   ║
  33.         echo ║       █▌The following method require a HP LaserJet/DeskJet printer (or▐███║
  34.         echo ║       █▌compatible), LASR_MAN, and all options will need to be set.▐██████║
  35.         echo ║  9. 4 pages/sheet (38) (may be changed to any other style of output)      ║
  36.         echo ╚═══════════════════════════════════════════════════════════════════════════╝
  37. :DRIVE
  38.         askn ■■ Enter the Documentation Setup you desire (1-9) 
  39.         echo  
  40.         set D=NONE
  41.         if ERRORLEVEL 1 if NOT ERRORLEVEL 2 set D=1
  42.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 set D=2
  43.         if ERRORLEVEL 3 if NOT ERRORLEVEL 4 set D=3
  44.         if ERRORLEVEL 4 if NOT ERRORLEVEL 5 set D=4
  45.         if ERRORLEVEL 5 if NOT ERRORLEVEL 6 set D=5
  46.         if ERRORLEVEL 6 if NOT ERRORLEVEL 7 set D=6
  47.         if ERRORLEVEL 7 if NOT ERRORLEVEL 8 set D=7
  48.         if ERRORLEVEL 8 if NOT ERRORLEVEL 9 set D=8
  49.         if ERRORLEVEL 9 if NOT ERRORLEVEL 10 set D=9
  50.                 if NOT .%D%==.1 goto LM
  51.         cls
  52.         echo ╔═══════════════════════════════════════════════════════════════════════════╗
  53.         echo ║                  LASR_MAN SHAREWARE DOCUMENTATION PRINTING                ║
  54.         echo ╠═══════════════════════════════════════════════════════════════════════════╣
  55.         echo ║                                                                           ║
  56.         echo ║  The LASR_MAN documentation will be printed using the DOS COPY function.  ║
  57.         echo ║                                                                           ║
  58.         echo ╚═══════════════════════════════════════════════════════════════════════════╝
  59.         copy lasr_man.doc prn
  60.                 goto DONE
  61. :LM
  62.         if NOT EXIST lm_doc_%D%.lmo goto NOLMO
  63.         cls
  64.         echo ╔═══════════════════════════════════════════════════════════════════════════╗
  65.         echo ║           LASR_MAN SHAREWARE DOCUMENTATION PRINT INSTRUCTIONS             ║
  66.         echo ╠═══════════════════════════════════════════════════════════════════════════╣
  67.         echo ║                                                                           ║
  68.         echo ║  LASR_MAN will now be loaded and set to print, using the method that you  ║
  69.         echo ║  have selected.                                                           ║
  70.         echo ║                                                                           ║
  71.         echo ║  In order to print the documentation using your selected method and the   ║
  72.         echo ║  default options shown, you will only need to press [┘] at each prompt.  ║
  73.         echo ║                                                                           ║
  74.         echo ║  You should check the PRINT function, PAPER SOURCE option and set it      ║
  75.         echo ║  correctly if it does no specify the paper source that is correct for     ║
  76.         echo ║  your printer.                                                            ║
  77.         echo ║                                                                           ║
  78.         echo ║  You may, at any prompt, change any option that you desire, after which   ║
  79.         echo ║  you should return to the option that was displayed and press [┘].       ║
  80.         echo ║                                                                           ║
  81.         echo ╚═══════════════════════════════════════════════════════════════════════════╝
  82.         pause
  83.         if NOT "%1"=="" set D=%D%%1
  84.         lasr_man /olm_doc_%D%
  85. :DONE
  86.         cls
  87.         echo ╔═══════════════════════════════════════════════════════════════════════════╗
  88.         echo ║           LASR_MAN SHAREWARE DOCUMENTATION PRINTING COMPLETE              ║
  89.         echo ╠═══════════════════════════════════════════════════════════════════════════╣
  90.         echo ║                                                                           ║
  91.         echo ║  1. Return to DOS.                                                        ║
  92.         echo ║  2. Erase the LASR_MAN.DOC file and the LASR_MAN documentation print      ║
  93.         echo ║     option files first, before returning to DOS.                          ║
  94.         echo ║                                                                           ║
  95.         echo ╚═══════════════════════════════════════════════════════════════════════════╝
  96.         askn ■■ Enter the Exit option you desire (1-2) 
  97.         echo  
  98.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto ERASE
  99.                 goto EXIT
  100. :NONE
  101.         echo ■■■ YOU HAVE SELECTED NOT TO PRINT THE LASR_MAN DOCUMENTATION AT THIS TIME ■■■
  102.         pause
  103.                 goto DONE
  104. :NODOC
  105.         echo ■■■ THERE IS NO LASR_MAN.DOC FILE TO PRINT ■■■
  106.         pause
  107.                 goto EXIT
  108. :NOLMO
  109.         echo ■■■ THERE IS NO LASR_MAN LM_DOC_%D%.LMO OPTION FILE TO USE FOR PRINTING ■■■
  110.         pause
  111.                 goto EXIT
  112. :ERASE
  113.         erase lasr_man.doc
  114.         erase lm_doc_*.lmo
  115. :EXIT
  116.         set D=
  117.  
  118.