Mail Archives: djgpp/1997/05/18/14:02:34
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 -