delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/18/14:02:34

From: "Peter Lewerin" <peter DOT lewerin AT krax DOT pp DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Printing (IBM)
Date: 18 May 1997 12:13:28 GMT
Organization: -
Message-ID: <01bc6385$04a120c0$LocalHost@peterlew>
References: <Pine DOT D-G DOT 3 DOT 91 DOT 970512130844 DOT 24572C-100000 AT dg1> <337B2A98 DOT 4487EB71 AT ripe DOT net>
NNTP-Posting-Host: dialup156-2-10.swipnet.se
NNTP-Posting-User: s-36170
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Henk Uijterwaal <henk AT ripe DOT net> skrev i inlägg
<337B2A98 DOT 4487EB71 AT ripe DOT net>...
> Under DJGPP, I tried 
> 
>     system ("print prn: some_random_name");

An alternative to using the PRINT utility is to use the COPY internal
command to copy the file to PRN, LPT1, LPT2 or whatever, like this:

    system( "command /c copy some_random_name prn" );

(I think you're not supposed to use the colon after the device name in the
command line.)  This code is untested, as I don't have a printer here.

I have no idea of what happens if two processes try this at the same time.

- Raw text -


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