home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / MOUSE / SWPRT.ZIP / SWPRT.DOC < prev   
Encoding:
Text File  |  1987-12-24  |  3.0 KB  |  79 lines

  1. Docs for Swprt.com - printer switching utility
  2. R. Trevithick, 12/24/87
  3.  
  4.  
  5. This allows people with multiple parallel ports to send normal
  6. LPT1 output to any of them.  What it actually does is switch the
  7. port assignments in low memory.  It's handy when using dumb
  8. programs which can't deal with multiple printers.  Each time it's
  9. run, it  prints a message on the screen to indicate which printer
  10. port is currently assigned to LPT1.
  11.  
  12. Syntax:         swprt [/1..3] [/q]
  13.  
  14. To actually change port assignments, use the following command line 
  15. parameters:
  16.  
  17.         /1      assigns normally to 1st parallel port (LPT1 default)
  18.         /2      assigns to 2nd parallel port
  19.         /3      assigns to 3rd parallel port
  20.  
  21. To run quietly (no messages printed, for batch files etc.):
  22.  
  23.         /q
  24.  
  25. If used with no option, it merely reports which port (i.e., printer)
  26. is assigned without changing anything.
  27.  
  28. Make sure your machine is set back to normal (printer #1) before
  29. using programs that DO know about multiple printers (e.g.
  30. WordPerfect).  Note that printer #1 is the one which is assigned
  31. when the machine is first booted.
  32.  
  33. A word of warning: if you try to send output to a parallel port
  34. which doesn't exist, you'll probably end up having to reboot.  At
  35. least that's what happens on my machines...
  36.  
  37. Perhaps a bit more explanation is in order here.  Let's say you
  38. have three parallel printer ports on your machine.  Number one is hooked 
  39. to a dot matrix printer, number two to a letter quality impact printer, 
  40. and number three to a laser printer.  Typing 'COPY PR.DOC > PRN' would 
  41. initially print this file on the dot matrix printer.  After running 
  42. swprt /2, the same command would print to the letter quality printer, 
  43. and after running swprt /3 the output would be to the laser printer.
  44.  
  45.  
  46. Technical Notes:
  47.  
  48. Swprt switches ports by first examining the low memory addresses for each
  49. of the three parallel printers.  When a request is made to change 
  50. assignments (via /1 /2 or /3), the program first normalizes the values 
  51. to the defaults.  If the request is a /1, we are done at this point.  If 
  52. it's a /2 or /3, the program switches the LPT1 assignment with the 
  53. assignment of the requested port (LPT2 or LPT3).  Hence, after switching 
  54. to parallel port 3, for example, LPT1 output will go to parallel port 3, 
  55. LPT3 output will go to parallel port 1, and LPT2 output will remain 
  56. unchanged and continue to go to parallel port 2.
  57.  
  58.  
  59. -------------Changes as of 12/15/87 revision----------------
  60.  
  61. - Ported over for Turbo C compiler (original was Datalight.)  Code size
  62.   reduced from 8K to 4K.
  63. - Eliminated all 'illegal' code, such as direct video writes.  Should run
  64.   on any MS-DOS machine now.
  65.  
  66. -------------Changes as of 12/24/87 revision----------------
  67.  
  68. - Minor changes; reduced size a bit
  69.  
  70.  
  71. Bob Trevithick                          GEnie address:  R.TREVITHICK
  72. Information Services Department
  73. Newark DDSO
  74. 703 E. Maple Ave
  75. Newark, NY  14513
  76.  
  77. Days:   (315) 331-1700  Ext. 2658
  78. Eves:   (315) 331-5266
  79.