dab@whuts.UUCP (Dave B.) (07/22/87)
I have a PC running MS DOS 3.2 and I have use of a Epson FX86e and a HP LaserJet. The HP is a serial printer, the Epson parallel. I'm planning to have LPT1 set to COM1 in my AUTOEXEC.BAT file so the default printer is the LaserJet. I would like to also have shell (or some modified equivalent to PRINT.COM) that lets me print to the Espon at will. Right now I've writtena little thing called LPRINT.BAT which is: MODE LPT1: PRINT %1 PAUSE # this returns "Strike key when ready" MODE LPT1:=COM1 THis works OK but, if I hit a key before the printer has stopped, it startss to redirect output to COM1 before I want it to. Does anyone out ther know how to : Redirect the output, print it, and redirect it back while runnign in the background? I suspect some sort of print spooler should help. Thanks in advance. Dave {ihnp4,ulysses,allegra}!whuts!dab
guardian@laidbak.UUCP (Harry Skelton) (07/24/87)
Just do the following - works on my machine (dos 3.1).... MODE LPT1:,132 (or what ever size your's is. MODE COM1:9600,N,8,1,P (what ever speed or port) MODE LPT2:=COM1: (the death blow). Now you have logical printer ports! you can pick up some PD software to help spool information on each. Have fun. (Also you can get print.exe to do it for you too..) Harry Skelton guardian@laidbak.UUCP
kevin@iisat.UUCP (07/26/87)
In article <2470@whuts.UUCP>, dab@whuts.UUCP (Dave B.) writes: > I have a PC running MS DOS 3.2 and I have use of a Epson FX86e and a > HP LaserJet. > > Does anyone out ther know how to : > Redirect the output, print it, and redirect it back while runnign in the > background? > I suspect some sort of print spooler should help. > > Dave > {ihnp4,ulysses,allegra}!whuts!dab I believe PRINT has a /D: option which allows you to tell it what device to print to. This should work fo r you but the only question is whether this option is a "one time" use (when you first invoke PRINT) or whether it "remembers" the de vice for each file... -- Kevin Davies International Information Service (IIS) UUCP: {seismo|utai|watmath|garfield} !dalcs!iisat!kevin ----------------------------------------