Mail Archives: djgpp/1997/03/06/06:34:13
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.
- Raw text -