home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 9014 < prev    next >
Encoding:
Text File  |  1992-09-02  |  2.0 KB  |  45 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!eff!news.oc.com!mercury.unt.edu!ponder!drice
  3. From: drice@ponder.csci.unt.edu (Keith Rice)
  4. Subject: Re: PRINT.EXE a binary file?
  5. Message-ID: <drice.715491356@ponder>
  6. Sender: usenet@mercury.unt.edu (UNT USENet Adminstrator)
  7. Organization: University of North Texas
  8. References: <BtzFH9.G3J@usenet.ucs.indiana.edu>
  9. Distribution: usa
  10. Date: Thu, 3 Sep 1992 03:35:56 GMT
  11. Lines: 32
  12.  
  13. In <BtzFH9.G3J@usenet.ucs.indiana.edu> yawei@bronze.ucs.indiana.edu (~{QG9p~}) writes:
  14.  
  15.  
  16. >I have the need to dump megabytes of bitmap image to some slow
  17. >dot matrix printers. I thought this might a neat idea: first
  18. >dump the image to a disk file, then pass the file name to
  19. >PRINT.EXE via the DOS multiplex interrupt calls so that it can
  20. >be printed in the background. Everything worked perfectly 
  21. >until some bytes with values 0x0D or 0x1B sneaked into the files.
  22.  
  23. >It turned out that PRINT.EXE was only equiped to handle non-binary
  24. >files! (This was confirmed after checking the manuals.) An 
  25. >otherwise useful program is thus seriously handicapped.
  26.  
  27. >I wonder whether anyone has discovered anything undocumented that
  28. >might allow me to get PRINT.EXE to do what I wanted? 
  29.  
  30. >On a similar note, can anyone recommend any PD print spooler
  31. >that can handle that much data? PD utility is probably the next
  32. >best thing in terms of user's ease of access.
  33.  
  34. If you're willing to not use the computer while the image is printing
  35. you can try "COPY filename LPT1 /B".  This will "copy" the file to
  36. the printer and it won't choke on the odd values because the "/B"
  37. copies in binary mode instead of text mode.
  38.  
  39. --
  40. D. Keith Rice -- University of North Texas -- drice@ponder.csci.unt.edu
  41. -----------------------------------------------------------------------
  42. Beta Test: To voluntarily entrust one's data, livelihood and sanity to
  43.            hardware or software intended to destroy all three.  In
  44.            earlier days, virgins were selected to beta test volcanoes.
  45.