Dec 232017
 
Background printing program.
File QP.ZIP from The Programmer’s Corner in
Category Printer Utilities
Background printing program.
File Name File Size Zip Size Zip Type
QP.C 3544 1296 deflated
QP.COM 10132 6641 deflated
QP.DOC 1896 918 deflated

Download File QP.ZIP Here

Contents of the QP.DOC file


I wrote this program mainly out of frustration with other print programs I
have on my system. The problem is that I would like to be able to print big
files in the background. I don't like DOS's PRINT because it is flaky and
occasionally crashes, and it installs itself permanently and takes up memory
even when it isn't needed. Being a fan of the DESQview multitasking shell,
I thought I could print files in the background on it by simply running some-
thing like this:

TYPE file >PRN

in a background DOS task. But no! Whenever a task starts printing, all other
tasks "freeze", so I can't do anything else with the computer while the one
task is printing. So being the kind of brain-damaged soul who solves simple
problems with complex solutions, I wrote my own print program which goes
directly to the printer port, bypassing DOS and BIOS. Thus it works smoothly
all the time, even running in the background under DESQview (or some other
multitasking shell). It can print one file, or a set of files whose names
are specified in another file.

The command format is:

QP [options] filename to print one file, OR

QP [options] @filename to print a set of files whose names are in the
specified file (a simple text file with one
file name per line). "@" files can be nested
(i.e. a "@" file can specify "@" files inside
it).

The options are:

-f prints a formfeed after each file.

-l# tells QP which parallel port to print to (i.e. -l2 for LPT2).
LPT1 is the default.

The source code (written in Turbo C) is included so you can laugh at my
(lack of) programming style. I compiled it using the "tiny" memory model,
then created QP.COM with DOS's EXE2BIN program.

--- Rob Epps (GEnie mail address R.EPPS)


 December 23, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)