home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
300
/
294
/
tfl.doc
< prev
next >
Wrap
Text File
|
1985-09-20
|
5KB
|
104 lines
-= TFL =- Text File Lister
Version 1.02 09/20/85
(C) Copyright 1985 by William D. Hileman
2262-3 Lucretia Ave.
San Jose, CA 95122
(408) 971-8416 (home)
Released to the Public Domain for distribution free of charge.
The user is welcome to freely distribute this software, provided it
is distributed in its original form, and that there is no compensation
for the distribution.
TFL is a simple ASCII text file lister which provides a header line
containing filename, system date and time, and page number at the top of
each page. It also provides a small margin at the top and bottom of each
page. TFL is very generic, and does not even issue a form-feed character
to page, it instead counts lines. TFL also expands TAB characters to
white space so that all printers should handle it. TFL does not strip-
out any other characters, so files which contain form-feed characters, or
other control characters, may produce undesireable results.
TFL can be invoked in any one of several ways:
Entering 'TFL ?' and pressing [ENTER] displays a short description of
the program and proper command line syntax.
Entering 'TFL' and pressing [ENTER] prompts the user for the filespec,
and proceeds to send it to the printer.
Entering 'TFL filespec' and pressing [ENTER] proceeds to send the
selected file to the printer. 'filespec' is the optional drive i.d. with
colon (i.e. 'C:'), and/or the optional path specifier (i.e. '\ROOT\FILES\'),
and/or the required filename (i.e. 'TFL.DOC').
Entering 'TFL d:\path\TFL.DAT' and pressing [ENTER] sequentially
reads filespecs contained in the text file TFL.DAT on the optional drive
and path specified and sends them, one after the other, to the printer.
The last two invocations also have the option of passing page size
definition switches on the command line. TFL defaults to printing 66
lines per page (six lines per inch on an eleven-inch long sheet), and 80
characters across each page (ten characters per inch on an 8-1/2 inch
wide sheet). The program does not send control codes to the printer
to set any desired print mode (unless they are contained in the text file
itself), so the printer would need to be set-up appropriately before
using TFL. Refer to your printer manual for more information.
To change the page length, use the `/PL' switch AFTER the filespec,
i.e., 'TFL TFL.BAS /PL 88' to list file TFL.BAS at 88 lines per page.
The spaces after the filespec are optional.
To change the page width, use the '/PW' switch AFTER the filespec,
i.e., 'TFL TFL.DAT /PL 88 /PW 132' to list the files contained in
file TFL.DAT at 88 lines per page and 132 columns per page.
There is minimal file integrity checking done. The selected file(s)
are checked to see if they exist. If they do, they are checked to see
if they are empty. If they are not, they are check to see if they are
BASIC 'protected' or 'binary' files. If they are not, TFL will attempt
to print them. Otherwise, a corresponding error message will be displayed.
When doing a batch listing ('TFL TFL.DAT'), any invalid files en-
countered during the listing process will cause the appropriate error
message to display, but TFL will not terminate execution unless the file
was the last one in the list.
TFL.DAT can be created with any word processor, DOS's EDLIN, DOS's
'COPY CON filespec' feature, or with an edited 'DIR > TFL.DAT'. Refer
to your DOS manual for more information. The file must contain ONLY a
list of filespecs with no blank lines.
Pressing [ESC] during printing will abort the current file, and ALL
files if you are running a batch listing.
Hope you can find as much use for this program as I have. I've been
using various versions of this utility over the years at work as I never
liked the DOS 'PRINT' utility, and never cared for anything too fancy...
I ask for no donations for my software, I write programs for a living
eight hours (plus) a day, and do these because I enjoy it. These are my
small contributions to the public domain, mostly dedicated to the numerous
sysops I've encountered who feel no sacrifice in donating their priceless
time, effort, and equipment for our usage. If you do find one of my
programs interesting or useful, or have an objective criticism then by all
means, please drop me a line. I'd rather receive a compliment on my
programming skills than a few dollars contribution any time! I can be
reached at any of the following BBS's in the Silicon Valley (CA) area:
Big Foot RBBS (408) 225-1845
North San Jose RBBS (408) 945-8358
Sigma Designs RBBS (408) 946-3269
Animal House RBBS (408) 374-0966
P.D.S.E. RBBS (408) 735-7190
Logon Unlimited RBBS (408) 735-7390
General Electric RBBS (408) 925-2518
Compushop RBBS (408) 226-4277
Crystal Castles (408) 733-1364
I am a SIG sysop on Crystal Castle BBS's SIG 6 - the Programming
Techniques SIG. Call my SIG sometime!