delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/06/06:34:13

Date: Thu, 6 Mar 1997 13:20:51 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ben Shadwick <ben DOT shadwick AT search DOT van DOT wa DOT us>
cc: djgpp AT delorie DOT com
Subject: Re: Output to the Printer
In-Reply-To: <331DB961.53FE@search.van.wa.us>
Message-ID: <Pine.SUN.3.91.970306132012.20341K-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019