home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / info / dostips1.arc / AST6PAK.TXT next >
Text File  |  1985-11-24  |  2KB  |  45 lines

  1.                 Swapping Printers with AST Cards
  2.         (PC Magazine Vol 4 No 3 Feb 5, 1985 User-to-User)
  3.  
  4.      AST multifunction card owners use a nifty print spooler program
  5. called SuperSpool. Unfortunately, when installed at bootup, it prevents
  6. output to any printer but the one you've originally specified.  If
  7. you've set SuperSpool to send stuff to LPT1:, you're shut out of LPT2:.
  8. What appears from the documentation to be logical solutions to the
  9. problem can lead to a total system lockup.  The folks at AST have not
  10. provided us with the solution adaptable to batch file use.  Call the
  11. batch bile LPTSWAP.BAT and use your text editor to make it look like
  12. the one below.  Then create the BASIC program and save it as SWAP.BAS.
  13.      Make sure both files are in your current directory along with
  14. MODE.COM, BASICA.COM, and SUPERSPL.COM.  Enter LPTSWAP and the DOS
  15. prompt, and normal printer output will be routed to the LPT2: port.
  16. Do it again, and you're back to LPT1:.  One warning: it clobbers
  17. Sidekick out of business.
  18.      Final tip for SuperSpool users: renaming SUPERSPL.COM S.COM
  19. makes it a lot faster.  It's easier to type S/P than SUPERSPL/P
  20. when you're in a hurry to purge a buffer.  If you do it, be sure
  21. to change the commands in LPTSWAP.BAT accordingly.
  22. - - - - -
  23. LPTSWAP.BAT batch file to swap printer output from LPT1: to LPT2:
  24. when using AST's spooling program:
  25.  
  26. superspl/p
  27. superspl lpt2:
  28. mode lpt1:
  29. mode lpt2:
  30. basica swap
  31. superspl lpt1:
  32.  
  33. - - - - -
  34. SWAP.BAS program called by LPTSWAP.BAT to swap printer output
  35. from LPT1: to LPT2: when using AST's spooling program:
  36.  
  37. 10 DEF SEG = &H40
  38. 20 A = PEEK(8):B = PEEK(9)
  39. 30 POKE 8, PEEK(10):POKE 9, PEEK(11)
  40. 40 POKE 10, A:POKE 11, B
  41. 50 SYSTEM
  42.  
  43. -----------------------------------------------------------------
  44.  
  45.