Click to See Complete Forum and Search --> : Redirect screen output to printer


Dexahol
May 17th, 2005, 11:11 AM
I have a notebook running pure DOS 6.22 and the display has gone out. I need to run a couple of simple commands. Is there some way to redirect the screen output to the printer? I looked at the MODE and CTTY commands, but those don't seem to cover this particular problem.

Thanks all.

SpywareDr
May 18th, 2005, 03:09 AM
Depends on the commands and their output. If somthing simple like a DIRectory listing, you could append a ">prn" (or ">lpt1") to the end of the command.dir c:\*.* /a /s > prn

Dexahol
May 18th, 2005, 09:05 AM
Yeah, I was able to do that to some extent, but I need to run a simple program that's on there where that won't be possible. I know that "CTTY" will allow you to designate a different input device. I was hoping for a similar output command.

ralph3124
May 18th, 2005, 01:20 PM
Under pure DOS, the PRINT SCREEN key should work (to the right of the F12 key). The printer has to be directly attached (not a network printer).

Hope this helps

SpywareDr
May 20th, 2005, 03:13 AM
This should work while working at the DOS or DEBUG prompt ... don't know about within your program though.

Press [Ctrl-P] to toggle the printer on, do whatever, then press [Ctrl-P] once again to toggle the printer back off.

Eeyore
May 22nd, 2005, 12:15 AM
The limitation will probably be the printer itself. A lot of the low end printers are "Windows only". They cannot be used with a DOS program and that goes to the "Print Screen" key as well. It must be a parallel port printer with DOS capability.

------------------
My
Two Cents
Dennis
Visit Politalk (http://www.geocities.com/politalk)

jerry4dos
May 22nd, 2005, 12:46 AM
The HP LaserJets up to (and including) model 1200 would still handle raw DOS, but I haven't been shopping lately. Everybody has an old EPSON LQ-850 in the closet -- that will work (no matter how dusty it is).

Jerry

SpywareDr
May 22nd, 2005, 02:26 AM
..