Skip to main content

Printing DOS output to printer

Issue:

Printing DOS output to printer.




Reasoning:

In some cases you may need a hard copy of a particular directory or file listing. The below method will allow you to print that information.
This solution is also a great method of testing a printer or printer port, verifying that all hardware on the computer and printer is correctly working.

Solution:

MS-DOS 2.0 to MS-DOS 6.x users
MS-DOS users using 2.x - 6.x can also use the print command.
Windows 95 and above users
To print information from MS-DOS to the printer the '> LPTx' command needs to be used after the command typed. This tells the computer to reroute all information to the appropriate LPT port, x represent the number. An example and most commonly used command is: 

DIR > LPT1 

This command tells the computer to print a directory listing, however, instead of printing it to the screen, send it to the printer, which is located on LPT1.
This command can also be used to print files by using the type command, for example:

TYPE FILE.TXT > LPT1

If, however, multiple files need to be printed, using the copy command can also be used. Below is an example:

COPY /B *.TXT LPT1

The above example will copy all txt or text files in the current directory to the lpt1 port.
When using the above example, it is important to realize that this will only print ASCII files and not BINARY or Encrypted files. Meaning that only text files will print using this method; attempting to print a Microsoft Word, Excel, Works, Word Perfect or any similar program that requires a program will not work. 

Note: When using the > LPTx command in MS-DOS, because the printer will not be sent a page feed command, the printer may not eject the paper from the printer. To eject the paper manually, use the button for FF (form feed) or page feed to eject your paper. If you have a Dot Matrix printer, use the hand wheel to manually eject the paper. 



Source:- computerhope.com

Comments

Popular posts from this blog

Lexmark Printer Error 900-43

Error Code Error Message Solutions ERROR 20 ERROR 200 Input Paper Sensor was not triggered - Paper may be jammed at the sensor. Remove toner cartridge for better access to jammed paper.   Paper not being picked up check paper tray & pickup rollers Replace rollers if worn smooth or cracked ERROR 21 The exit sensor was not made in time after the input sensor as made. ERROR 22 The exit sensor was not unmade in time. ERROR 23 Jam at the duplex unit. Paper is either not leaving the duplex entry sensor in time ...

Printer Troubleshooting - Tips to Restore Laser Printer Performance

Like all laser printers, the Kyocera laser printer also has its set of performance woes that could be resolved by simple troubleshooting. When the printer has been in operation for a long time, troubles usually commence with the rubber rollers or from the sensitive components that are already aging. However if trouble emanates from the toner cartridge, a Kyocera compatible cartridge replacement can resolve the issue and allow trouble free printing to proceed once again. Defective Rollers. The function of the rubber rollers is to seamlessly move paper from one printer component to the next; failure often results in paper jams. The Kyocera laser printer employs several of these rubber rollers in its operations. This begins with the pick-up rollers from the paper tray to the OPC Drum (Organic Photo Receptive); to the fuser assembly rollers and down to the exit rollers that is responsible for the exit of paper from the printer. Since paper is abrasive, continuous contact will result in t...

Dell 1135n Multi-function Laser Printer

Searching for a multi-purpose fax, scan, copy and print device for office use is far more difficult than it should be these days, mainly because there's such a wide range of products out there that all do a fairly similar job. Dell has made a solid, if uninspiring, shift in the printer market recently, and the 1135n complements associated models in the same range by adding multi-function capabilities along with wired network support. Despite its tilt towards an office environment, this is really a medium-yield laser printer with a 250-sheet main tray, 80-sheet output bin and a 40-sheet automatic document feeder.   <A target="_blank" href="http://ad.uk.doubleclick.net/jump/vnu2.uk/reviews/bus-hard/peripherals/laser-printers/;page=article;artid=2267082;topcat=business-hardware;cat=peripherals;tag=hardware;sect=hardware;pos=mpu1;tile=3;dcopt=;sz=200x200,300x250,336x280;gs_cat=&quot;+gs_channels+&quot;;ord=1664423074?"><IMG alt="" borde...