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

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!usc!zaphod.mps.ohio-state.edu!rpi!uwm.edu!ogicse!qiclab!leonard
  2. From: leonard@qiclab.scn.rain.com (Leonard Erickson)
  3. Newsgroups: comp.sys.ibm.pc.misc
  4. Subject: Re: How do I send a binary file to a printer?
  5. Message-ID: <1992Aug18.012823.23683@qiclab.scn.rain.com>
  6. Date: 18 Aug 92 01:28:23 GMT
  7. References: <6536@tekig7.PEN.TEK.COM> <thompson.714085174@kiyotaki.econ.umn.edu>
  8. Reply-To: 70465.203@compuserve.com
  9. Distribution: na
  10. Organization: SCN Research/Qic Laboratories of Tigard, Oregon.
  11. Lines: 27
  12.  
  13. thompson@atlas.socsci.umn.edu (T. Scott Thompson) writes:
  14.  
  15. >Several posters have given _almost_ correct answers to this.  When you
  16. >get the file onto the computer with the "good" printer you should use
  17.  
  18. >        copy <yourfilename> prn /b
  19. >           
  20. >Note the /b switch at the end!  If you leave it off then DOS will copy
  21. >bytes until it encounters a control-Z (end-of-file) character.  Since
  22. >the file might be in a binary format, this is not what you want.
  23. >(Believe me!  I speak from experience on this one.)  When you use /b
  24. >then DOS ignores control-Z's in the file, and copies the number of
  25. >bytes recorded in the filesize field in the directory entry for
  26. ><yourfilename>.
  27.  
  28. It's best to put the /b immediately after the copy. In some environments
  29. the /a and /b switches only affect the files that *follow* them!
  30.  
  31. Also, even worse than ^Z, is the way DOS will cheerfully translate
  32. ^I characters to the "appropriate" number of spaces! In a binary
  33. file that is a *real* disaster!
  34.  
  35. -- 
  36. Leonard Erickson              leonard@qiclab.scn.rain.com
  37. CIS: [70465,203]             70465.203@compuserve.com
  38. FIDO:   1:105/51     Leonard.Erickson@f51.n105.z1.fidonet.org
  39. (The CIS & Fido addresses are preferred)
  40.