delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/06/16:01:42

From: Ben Shadwick <ben DOT shadwick AT search DOT van DOT wa DOT us>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 970306132012 DOT 20341K-100000 AT is>
NNTP-Posting-Host: 198.104.137.29
Mime-Version: 1.0
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 <g>

- Raw text -


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