Date: Thu, 6 Mar 1997 13:20:51 +0200 (IST) From: Eli Zaretskii To: Ben Shadwick cc: djgpp AT delorie DOT com Subject: Re: Output to the Printer In-Reply-To: <331DB961.53FE@search.van.wa.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 5 Mar 1997, Ben Shadwick wrote: > > > Did you actually try this? AFAIK, it should be "PRN", not "PRN:". > > > > All my DOS manuals call the device PRN:. Same for all the COM, LPT, and CON. > > Actually, it's "CON" and "PRN" (no ':'s), and "COMx:" and "LPTx:" (where > 'x' is the port number, e.g. COM1: or LPT2:) Nope, it's "COMx" and "LPTx" (no colons). The short program that I posted in this thread also fails for "LPT1:", but works for "LPT1". Generally, DOS disallows file names with a colon (except as part of d:pathname), so it's not surprising that the colon doesn't work in device names.