DOCUMENT:Q82749 29-NOV-1999 [win95x] TITLE :Using LPT1.OS2, LPT1.DOS, or FILE: Ports When Printing PRODUCT :Microsoft Windows 95.x Retail Product PROD/VER:WINDOWS:3.1,3.11 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows versions 3.1, 3.11 ------------------------------------------------------------------------------- SUMMARY ======= In Microsoft Windows version 3.1, the LPT1.DOS printer port connection has exactly the same effect as typing LPT1.DOS (or LPT1.OS2) when printing to a FILE:. If you type LPT1.DOS (or LPT1.OS2), a message box asking "Overwrite existing file?" appears. Choose the Yes button to print. This message appears because MS-DOS assumes that the file LPT1.xxx (where xxx is any extension) always exists. Note that the LPT1.OS2 or LPT1.DOS syntax is not required. It is included in Windows 3.1 for backward compatibility only. Using LPT1 (or typing LPT1 in the FILE: output file dialog box) has the same effect. LPT2 and LPT3 connections behave similarly. MORE INFORMATION ================ A problem in Windows 3.0 was corrected to allow binary files to be printed to LPT1.xxx-style ports. In Windows 3.0, the output was copied to the port using a command similar to the MS-DOS COPY command without the /B parameter, which would stop the output if a CTRL+Z (^Z) End-of- File (EOF) character was found in the output. The port is now written to in a raw mode, allowing binary data containing EOF characters to be written. Additional query words: 3.10 3.11 binary EOF end-of-file /B ====================================================================== Keywords : Technology : kbWin3xSearch kbZNotKeyword3 kbWin310 kbWin311 Version : WINDOWS:3.1,3.11 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.