Category : Printer Utilities
Archive   : LPT2DSK.ZIP
Filename : LPT2DSK.DOC

Output of file : LPT2DSK.DOC contained in archive : LPT2DSK.ZIP
LPT2DSK - Capture printer output to disk file.
Version 1.0
October 3, 1986
(c) Copyright by George G. Bouche

This program works by intercepting the printer bios interupt (17h) and capturing
the would be printed data in a buffer which is later written to a disk file. By
capturing at the bios level, all dos printing (file redirection, Ctl-PrtSc, LPT?,
PRN, ...) and programs which call the bios directly (BASIC, Shft-PrtSc) are
handled. Capturing is for a specific printer (LPT1, LPT2 or LPT3) and output
to the other two printers is passed thru to the original INT17 interupt address.


LPT2DSK [p] [nnK] [F=[d:][\path]filename[.ext]]

p=1, 2 or 3 printer number for LPT1, LPT2, or LPT3
Default=1 LPT1

nn=1 to 64 the amount of memory (in multiples of 1024 bytes) to
allocate to the printer buffer. The K is required.

filename any valid dos filename (can be a device) with
optional drive, path and/or extension. The F=
is required.
Default=LPT2DSK.p where p=printer number as above
on the current drive, current directory.

- Dos 2.0 or later.
- The parameters can be in any sequence but must be delimited by space(s).
- Any or all parameters can be ommitted.
- The environment must have an entry for locating COMMAND.COM (COMSPEC= )
and COMMAND.COM must be available as it will be loaded.
- LPT2DSK.EXE needs 9120 bytes + XXXX bytes for the resident portion of
COMMAND.COM(for dos 3.1 this is 3200) + buffer size.
- Multiple printers can be captured - just run the program again for the
other printer. Remember, last one started is the first one to exit from.
- Dos redirections of the printer (i.e. to COM?) are not detected and
no data will reach the buffer.
- The printer port hardware need not be present to capture data. The printer
status of the captured printer is returned as ready/not busy unless the
buffer has filled.


capture LPT2 and reserve a 32k buffer. a secondary
level of is loaded. interupt 17h is
replaced; no hardware or dos interupts are disturbed.

... run the programs that print
and/or hit shift-print-screen
and/or hit control-print-screen
printing to LPT1 or LPT3 goes on un-affected
if the buffer gets full, dos returns an
"Not ready error writing device LPT2
Abort, Retry, or Ignore"
the only option is to abort.

EXIT exit secondary and end LPT2DSK
the file CAPTURE.DAT is opened and data is written.
if the file existed before, it is overwritten.
if no data was printed, the file will not be opened.
interupt 17h is restored to value before capture.
all allocated memory is returned - nothing resident.

capture LPT3 and reserve a 64k buffer.
the buffer will be written to printer 1 when done.

Please direct any comments/suggestions/problems to:

George G. Bouche
P.O.Box 65111
Lubbock, TX 79464

  3 Responses to “Category : Printer Utilities
Archive   : LPT2DSK.ZIP
Filename : LPT2DSK.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: