Mail Archives: djgpp/1997/03/06/16:01:42
Eli Zaretskii wrote:
> > 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.That must have to do with DJGPP or something then. Try (from a DOS prompt) doing:
dir > prn
dir > con
dir > lpt1:
dir > lpt1
Only the first three should work, the first and third outputting to the printer (if it's
on lpt1) and the second to the screen. Anyways, "CON" and "PRN" at least should not have
colons <g>
- Raw text -