home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / print / sjii.zip / PRTDOC.BAT < prev    next >
DOS Batch File  |  1992-10-12  |  2KB  |  85 lines

  1. @echo off
  2.  
  3. cls
  4.  
  5. echo ┌─────────────────────────────────────────────────────────────────────┐
  6. echo │ This program will print the softJET II user manual on your          │ 
  7. echo │ LaserJet printer. It assumes that your printer is connected to      │ 
  8. echo │ PRN or LPT1. If your printer is connected to a "COM" port or an     │ 
  9. echo │ "LPT" port other than port #1 then exit this procedure by           │
  10. echo │ pressing Ctrl-C and follow the instructions below.                  │
  11. echo └─────────────────────────────────────────────────────────────────────┘
  12. echo ┌─────────────────────────────────────────────────────────────────────┐
  13. echo │ If your printer is connected to a line printer port (LPT:)          │
  14. echo │ other than port #1 then enter the command:                          │
  15. echo │                                                                     │
  16. echo │   "PRTDOC 1" or "PRTDOC 2" etc.                                     │
  17. echo │                                                                     │
  18. echo │ If your printer is connected to a serial communications port        │
  19. echo │ (COM:) then enter the command:                                      │
  20. echo │                                                                     │
  21. echo │   "PRTDOC C 1" or "PRTDOC C 2" etc.                                 │
  22. echo └─────────────────────────────────────────────────────────────────────┘
  23. echo ┌─────────────────────────────────────────────────────────────────────┐
  24. echo │ Make sure your printer is ON and READY ... or press Ctrl-C to exit. │
  25. echo └─────────────────────────────────────────────────────────────────────┘
  26.  
  27. pause
  28.  
  29. if /%1/ == /c/ goto com
  30. if /%1/ == /C/ goto com
  31.  
  32. if /%1/ == /1/ goto lpt_1
  33. if /%1/ == /2/ goto lpt_2
  34. if /%1/ == /3/ goto lpt_3
  35. if /%1/ == /4/ goto lpt_4
  36.  
  37. :lpt_1
  38.  
  39. doc -pb
  40. goto end
  41.  
  42. :lpt_2
  43.  
  44. doc -pb2
  45. goto end
  46.  
  47. :lpt_3
  48.  
  49. doc -pb3
  50. goto end
  51.  
  52. :lpt_4
  53.  
  54. doc -pb4
  55. goto end
  56.  
  57. :com
  58.  
  59. if /%2/ == /1/ goto com_1
  60. if /%2/ == /2/ goto com_2
  61. if /%2/ == /3/ goto com_3
  62. if /%2/ == /4/ goto com_4
  63.  
  64. :com_1
  65.  
  66. doc -pbc
  67. goto end
  68.  
  69. :com_2
  70.  
  71. doc -pbc2
  72. goto end
  73.  
  74. :com_3
  75.  
  76. doc -pbc3
  77. goto end
  78.  
  79. :com_4
  80.  
  81. doc -pbc4
  82. goto end
  83.  
  84. :end
  85.