Microsoft KB Archive/79890

= Printing to Auxiliary Ports from MS-DOS Editor and QBasic =

Article ID: 79890

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a
 * Microsoft MS-DOS 6.0 Standard Edition
 * Microsoft MS-DOS 6.2 Standard Edition
 * Microsoft MS-DOS 6.21 Standard Edition
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q79890



SUMMARY
You can print to alternative auxiliary ports from MS-DOS Editor or QBasic by saving the file with a file name of the alternative port.

Valid values for parallel ports include LPT1, LPT2, and LPT3. Valid values for serial ports include COM1, COM2, COM3, and COM4. Other auxiliary devices such as CON (console) may be used.

The ability to print to any of the above ports is contingent upon the port being both physically present on the machine and the port being supported by the computer's system BIOS.



MORE INFORMATION
To print to an alternative port, do the following:

 Open the file you want to print in MS-DOS Editor. From the File menu, choose Save As. You will be prompted for a new file name. For the file name, enter the name of the printer port to which your printer is attached. A dialog box will appear with the following message:

File already exists. Overwrite?

Select Yes.

The file will then print to the port you have chosen. Saving the file as an alternative port will not save the file to disk.

Additional query words: 6.22 5.00 5.00a 6.00 6.20

Keywords: KB79890

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.