Mail Archives: djgpp/1997/04/17/03:18:32
On 16 Apr 1997, Mark H. Wood wrote:
> Thing, but I haven't been able to find a command that will copy
> standard input to a file (e.g. LPT1:) without using redirection
> (which appears not to work in this context).
It might be that redirection didn't work for you because the name of
the printer as known to DOS is PRN or LPT1, not LPT1:. The colon
fails DOS calls, so you should not use it.
> I gave up and wrote a tiny program to do that, but I thought I'd be less
> embarassed if I asked about other options before offering it to the world,
> rather than being told of them afterward.
I don't see anything wrong with this solution either.
- Raw text -