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

How to Troubleshoot Your Dell Printer

Dell, Inc., is a computer and electronics manufacturer known for its low-cost PCs and printers. Owning a home printer makes creating, designing and publishing your own work easy. However, a Dell printer may occasionally experience errors and problems. Learn how to troubleshoot a Dell printer to fix your Dell printer and restore your productivity. Instructions Check that your Dell printer is plugged into a reliable power source. Faulty home wiring or a loose cable may cause the Dell printer to shut off, causing some of your Dell printer problems. Verify that your Dell printer is plugged securely into your computer. Sometimes, the printer cable may be disconnected when you are moving or using your PC. This may result in printer errors when the Dell printer tries to send printer data to your computer, and vice versa. Jiggle the printer cable gently to check that it is plugged in firmly. Restart your computer by clicking the Start menu in the lower left-hand corner of the scre...

Samsung ML-1640 Printer

Samsung offers an exclusive printer under the tag of ML-1640 . This printer uses the laser technology. The printer works in monochromatic ink. The speed provided by the printer is good enough. The range is approximated to be 16 pages per minute. The dimension of the printer is 353 mm x 209 mm x 298 mm for width, height and depth respectively. The machine weighs near about 5.7 kgs. It has a special memory block of 8 MB. The features of the Samsung ML-840 Printers are better from the other similar printers of its kind. The printer offers a sound resolution of 1200dpi x 600dpi, which is really good. The MLT-D1082S cartridge used enhances the quality of the prints to a great extent. The technical aspect of these printers is worth for the price charged of the Samsung ML-1640 . The quality on the basis of resolution gives a clear picture view. The connection to the system can be made by the use of simple USB ports instead of the group of wires that often creates a messy appearance near ...

Laser Printer Troubleshooting

The first step when trouble-shooting a laser printer is to try to isolate the problem. Oftentimes, just cleaning the interior and exterior of the printer can be helpful. Do not submerge the printer in water. You may use a damp cloth to gently wipe down the outside of the printer, or better yet, use a cleaner specifically designed for electronics. To clean any dirt and debris from the inside of the printer, spray with a can of condensed air, making sure that there is a clear path for the debris to exit. Use a clean lint free cloth to continue removing the loosened debris if needed. All laser printers generate very high internal temperatures and have the potential to overheat. To avoid this, a thermal fuse is incorporated in these printers to prevent them from overheating. If this fuse is faulty, the printer may get overheated and damaged or the fuse may signal the printer to stop printing even if the printer has not yet overheated. If your laser printer prints dark spots, the ca...