🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #7954

Re: HELP! Using DOS print

#7954
From: Mark Miller
Date: Fri, 01 Dec 1989 16:35
21 lines
1244 bytes
Jill:
	From the print options you specified, it doesn't sound like you're
looking for the PRINT command to do anything more than dump a file to
the printer. The only advantage to using PRINT is that PRINT uses a spooler
to do the trick. The disadvantage is that PRINT does load a memory-resident
segment that doesn't go away. I have two suggestions:

	1. If you don't need a spooler and you're not in a hurry, simply
open the file for reading and send it to stdprn (defaults to lpt1:) via
fprintf.

	2. If you're in a hurry, write a small custom spooler hanging
off the INT8 (timer tick) interrupt for your application. 

Either of these returns full control of the memory to you.

Good luck. Let me know how it works out.

				Mark Miller
				miller@b-mrda.boeing.com
Technical Details
Message-ID: <490003@b-mrda.boeing.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!ucsd!ucsdhub!hp-sdd!hp-pcd!hplsla!hpubvwa!b-mrda!miller
References: <6534@brspyr1.BRS.Com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!ucsd!ucsdhub!hp-sdd!hp-pcd!hplsla!hpubvwa!b-mrda!miller
From: miller@b-mrda.boeing.com (Mark Miller)
Newsgroups: comp.sys.ibm.pc
Subject: Re: HELP! Using DOS print
Message-ID: <490003@b-mrda.boeing.com>
Date: 1 Dec 89 16:35:26 GMT
References: <6534@brspyr1.BRS.Com>
Organization: Manufacturing R&D Boeing Commercial Airplane Div.
Lines: 21