home *** CD-ROM | disk | FTP | other *** search
/ Software Du Jour / SoftwareDuJour.iso / COMPUTER / PRINTER / PRNTER3.ARC / SWPTR.DOC < prev   
Encoding:
Text File  |  1983-08-24  |  2.7 KB  |  51 lines

  1.                SWAP PRINTERS COMMAND
  2.  
  3.             Written by Thomas M. Rowlett
  4.  
  5.  
  6.  
  7.      The Swap Printers (SWPTR) Command provides the capability to logically
  8. swap the printer defined as LPT1: with the printer defined as LPT2:.  This
  9. can be very useful to IBM PC owners who have printers connected to the two
  10. (2) parallel ports of their PCs.  I developed the assembly language program
  11. so that I could easily use either one of my two printers with many of my
  12. application programs that use LPT1: exclusively, without having to recable
  13. the printers or use an A-B Switch Box every time I wanted to swap them.
  14.  
  15.      An example would be if one were using WordStar to print a draft of a
  16. document using a dot matrix printer, then a final copy is desired using a
  17. letter quality printer. Normally, one would have to disconnect the dot
  18. matrix printer and connect the letter quality printer to the LPT1: port.  By
  19. having a second printer port (LPT2:) and using the SWPTR command from
  20. WordStar (Run a Program option from the main menu of WordStar), one can
  21. logically swap LPT1: with LPT2: so that the output directed to LPT1: is
  22. printed on the printer attached to LPT2:.  No cables to disconnect and
  23. reconnect!  No pins bent or broken!  Just remain in the comfort of your
  24. chair and let the computer do the printer swapping.  When it is desired to
  25. swap the printers back to their original assignments, just run SWPTR again.
  26.  
  27.      SWPTR initializes both printers when a swap takes place.  This was
  28. necessary because some printers would not operate after the swap.  An
  29. optional input of an "i" or "I" in the command line  (for example, "SWPTR
  30. I") specifies that only an "inspect" of the printer assignment is desired.
  31. Like all DOS Commands, upper or lower case letters may be used.  Executing
  32. the inspect option does not cause either printer to be initialized.
  33.  
  34.      SWPTR, when linked, becomes a COMmand file of DOS so it can be executed
  35. like the DOS Commands MODE or DISKCOPY.  This usually requires executing
  36. SWPTR before the application program.  Some programs, like WordStar, provide
  37. a way to execute a DOS Command without exiting.  SWPTR works very well from
  38. those programs.
  39.  
  40.      Since the time I first developed this command, I have seen several
  41. examples in other publications on how to make use of two printers connected
  42. to the same IBM PC.  All the articles proposed using a BASIC program to do
  43. the swapping.  I feel this assembly language program, SWPTR, offers much
  44. more flexibility than the BASIC programs because it operates as a DOS
  45. Command.
  46.  
  47.      Please enjoy the flexibility offered by SWPTR.  You no longer have to
  48. swap printer cables or connectors to be able to direct your printer output
  49. to LPT2:  instead of LPT1:.
  50.  
  51.