home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!zazen!doug.cae.wisc.edu!umn.edu!thompson
- From: thompson@atlas.socsci.umn.edu (T. Scott Thompson)
- Newsgroups: comp.sys.ibm.pc.misc
- Subject: Re: How do I send a binary file to a printer?
- Message-ID: <thompson.714085174@kiyotaki.econ.umn.edu>
- Date: 17 Aug 92 20:59:34 GMT
- References: <6536@tekig7.PEN.TEK.COM>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Reply-To: thompson@atlas.socsci.umn.edu
- Distribution: na
- Organization: University of Minnesota
- Lines: 22
- Nntp-Posting-Host: kiyotaki.econ.umn.edu
-
- georgew@tekig1.PEN.TEK.COM (George Walker) writes:
-
- >I'm running Windows and I have a crummy printer, but I have access to
- >another PC running DOS that has a laser printer. If I do a "print to file"
- >from my word processor under Windows, with the correct printer setup, and
- >then take that file to the DOS machine, how do I print the file? My DOS
- >manual says that the DOS "print" command is only for text files.
-
- >Thanks for any help.
-
- 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>.
-