Category : OS/2 Files
Archive   : LJ2UP2.ZIP
Filename : LJ2UP.DOC

 
Output of file : LJ2UP.DOC contained in archive : LJ2UP2.ZIP

LaserJet Lister Utility
Version 2.0
Copyright (c) 1987 by Joe Barnhart

This file, LJ2UP.EXE, is a utility that prints ASCII text files in "2-up"
(two pages on each piece of paper) format on a Hewlett-Packard LaserJet
(or LaserJet+) printer. To run this program, you need a font cartridge
with the Line Printer font in landscape form. Many cartridges contain this
font, such as the HP 92286A font cartridge. (Neither the LaserJet nor
the LaserJet+ have this font built in.)

To print a file, or a series of files, invoke LJ2UP from the command line:

A>LJ2UP [-dtpvsoi] file1 file2 file3 ...

Each filename may contain wildcards ('*' and '?') and path specifications.
The optional switches are:

d Supress the date and time stamp at the bottom of the page.
tN Set tab stops every N columns.
pN Set print length to N lines (add 2 lines for date stamp).
v Turn OFF the vertical line that separates pages.
s Enable PC/Forth "screenfile" mode.
oName Re-direct the output to a device or file.
i "IBM" file mode: 66 lines/page, no form-feeds
else Any other character prints the command usage on the console.


The defaults are:

Date and time stamping ON.
Tabs every 8 columns.
Print length 56 lines.
Vertical separator line ON.
Screenfile mode OFF.
Printer device PRN:


Here are some examples:

LJ2UP -dp60 JUNK.TXT Print JUNK.TXT with 60 lines/page, no date.
LJ2UP -oCOM1 \*.C Print files *.C and JOE.* to device COM1.
LJ2UP -s *.SCR Prints all ".SCR" screenfiles in current dir.


To save time, put several file specifications on one line:

LJ2UP A:*.PAS \MSC\WORK\*.C C:\PUBLIC\*.DOC
LJ2UP -s C:\LMI\*.SCR D:\URFORTH\*.SCR

As a special treat, you may define your own default preferences and make
them known to LJ2UP through an environment variable named "LJ". For
example:

SET LJ=-dp60oLPT1 Put this line in AUTOEXEC.BAT

The above command causes LJ2UP to default to , <60 lines/page>,
and . You may use this feature to customize LJ2UP without
actually patching the code. In the environment variable, the options must
be specified without intervening spaces.

When defining the number of lines per page, be aware that the date stamp
requires two lines. Therefore, defining a page length of 60 lines with date
stamping ON will result in 58 printable lines on each page. If there are form
feeds imbedded in the file, they will cause the lister to skip to the top of
the next page (which could be on the same piece of paper).

The "IBM" file mode is for text files that assumes 66 lines/page (60 printable)
and does not include any form-feeds. These files are most commonly seen as
".DOC" files for shareware and such. Note that the -i flag overrides the -p
and -d settings.

I am retaining the legal copyright to this program, but you may use it without
incurring any financial obligation. In other words, the use of this program
is FREE. The use of this program is free because I have spent many enjoyable
hours using programs that were provided in the public domain by authors like
Ward Christensen. I hope that you have as much fun with this program.

Thanks to my friend Ray Duncan for his MS-DOS magic and Microsoft C mastery,
and to Allen Holub and Dr. Dobb's Journal for the functions GETARGS.C and STOI.C
used in this program.

Joe Barnhart
1470 Townview Ave.
Santa Rosa, CA 95405
Compuserve 76174,1573
(no donations accepted)


  3 Responses to “Category : OS/2 Files
Archive   : LJ2UP2.ZIP
Filename : LJ2UP.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: http://www.os2museum.com/wp/mtswslnk/