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