How to print from DOS

Document number: 42001

 

There are a few printing functions in DOS. The Print command prints your text in a standard portrait orientation on the printer assigned to LPT1. The LPRT command prints your text in a two-page format using landscape orientation on the printer assigned to LPT1. A text file can also be printed to the LPT2 port.

Files must be saved in ASCII text format.

To print text files using the print command:

  1. Click on Start, then Programs, and select Command Prompt (or MS-DOS Prompt).

  2. At the command line, type:  C:\> print textfile.txt and press { Enter}.

 

To print text files using the LPRT command:

  1. Click on Start, then Programs, and select Command Prompt (or MS-DOS Prompt).

  2. At the command line, type:  C:\> lprt textfile.txt

  3. Press { Enter}.

 

To print a file to LPT2, capture the LPT2 port first:

  1. Click on Start, then Settings, and select Printers.

  2. Right-click on the printer from which you would like to print and click on P roperties.

  3. Click on the Details tab and select the Capture Printer Port... button.

  4. In the Device: field, select LPT2 and in the Path: field, click on the down arrow to select the printer path or type it in manually (for example \\psp-print-02\p16).

  5. Click on OK.

  6. Then click on Start, then Programs, and select Command Prompt (or MS-DOS Prompt).

  7. At the command line, type:  C:\> copy textfilename lpt2 and press { Enter}.

 

 

 

 

 

 

Created by the PeopleSoft Knowledge Management Team.
Copyright © 1999 All rights reserved.
Created: jem 11/30/1998
Revised: kcw 09/24/1999