From: Ben Shadwick Newsgroups: comp.os.msdos.djgpp Subject: Re: Output to the Printer Date: Thu, 06 Mar 1997 09:24:57 -0800 Organization: Clark College, Vancouver Wa. USA Lines: 18 Message-ID: <331EFDE9.1867@search.van.wa.us> References: NNTP-Posting-Host: 198.104.137.29 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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