From: "Peter Lewerin" 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: <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 Precedence: bulk Henk Uijterwaal 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.