home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / ibm / pc / misc / 11593 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.6 KB

  1. Path: sparky!uunet!olivea!decwrl!zazen!doug.cae.wisc.edu!umn.edu!thompson
  2. From: thompson@atlas.socsci.umn.edu (T. Scott Thompson)
  3. Newsgroups: comp.sys.ibm.pc.misc
  4. Subject: Re: How do I send a binary file to a printer?
  5. Message-ID: <thompson.714085174@kiyotaki.econ.umn.edu>
  6. Date: 17 Aug 92 20:59:34 GMT
  7. References: <6536@tekig7.PEN.TEK.COM>
  8. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  9. Reply-To: thompson@atlas.socsci.umn.edu
  10. Distribution: na
  11. Organization: University of Minnesota
  12. Lines: 22
  13. Nntp-Posting-Host: kiyotaki.econ.umn.edu
  14.  
  15. georgew@tekig1.PEN.TEK.COM (George Walker) writes:
  16.  
  17. >I'm running Windows and I have a crummy printer, but I have access to
  18. >another PC running DOS that has a laser printer.  If I do a "print to file"
  19. >from my word processor under Windows, with the correct printer setup, and
  20. >then take that file to the DOS machine, how do I print the file?  My DOS
  21. >manual says that the DOS "print" command is only for text files.
  22.  
  23. >Thanks for any help.
  24.  
  25. Several posters have given _almost_ correct answers to this.  When you
  26. get the file onto the computer with the "good" printer you should use
  27.  
  28.         copy <yourfilename> prn /b
  29.            
  30. Note the /b switch at the end!  If you leave it off then DOS will copy
  31. bytes until it encounters a control-Z (end-of-file) character.  Since
  32. the file might be in a binary format, this is not what you want.
  33. (Believe me!  I speak from experience on this one.)  When you use /b
  34. then DOS ignores control-Z's in the file, and copies the number of
  35. bytes recorded in the filesize field in the directory entry for
  36. <yourfilename>.
  37.