🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1250

Re: PRINT.EXE a binary file?

#1250
From: Keith Rice
Date: Thu, 03 Sep 1992 03:35
32 lines
2054 bytes
In <BtzFH9.G3J@usenet.ucs.indiana.edu> yawei@bronze.ucs.indiana.edu (~{QG9p~}) writes:


>I have the need to dump megabytes of bitmap image to some slow
>dot matrix printers. I thought this might a neat idea: first
>dump the image to a disk file, then pass the file name to
>PRINT.EXE via the DOS multiplex interrupt calls so that it can
>be printed in the background. Everything worked perfectly 
>until some bytes with values 0x0D or 0x1B sneaked into the files.

>It turned out that PRINT.EXE was only equiped to handle non-binary
>files! (This was confirmed after checking the manuals.) An 
>otherwise useful program is thus seriously handicapped.

>I wonder whether anyone has discovered anything undocumented that
>might allow me to get PRINT.EXE to do what I wanted? 

>On a similar note, can anyone recommend any PD print spooler
>that can handle that much data? PD utility is probably the next
>best thing in terms of user's ease of access.

If you're willing to not use the computer while the image is printing
you can try "COPY filename LPT1 /B".  This will "copy" the file to
the printer and it won't choke on the odd values because the "/B"
copies in binary mode instead of text mode.

--
D. Keith Rice -- University of North Texas -- drice@ponder.csci.unt.edu
-----------------------------------------------------------------------
Beta Test: To voluntarily entrust one's data, livelihood and sanity to
           hardware or software intended to destroy all three.  In
           earlier days, virgins were selected to beta test volcanoes.
Technical Details
Message-ID: <drice.715491356@ponder>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!eff!news.oc.com!mercury.unt.edu!ponder!drice
References: <BtzFH9.G3J@usenet.ucs.indiana.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!eff!news.oc.com!mercury.unt.edu!ponder!drice
From: drice@ponder.csci.unt.edu (Keith Rice)
Subject: Re: PRINT.EXE a binary file?
Message-ID: <drice.715491356@ponder>
Sender: usenet@mercury.unt.edu (UNT USENet Adminstrator)
Organization: University of North Texas
References: <BtzFH9.G3J@usenet.ucs.indiana.edu>
Distribution: usa
Date: Thu, 3 Sep 1992 03:35:56 GMT
Lines: 32