home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
sysutl
/
b6pack.arc
/
6PACK.DOC
next >
Wrap
Text File
|
1986-01-21
|
7KB
|
188 lines
The Boston Six-Pack
The Boston Six-Pack is a collection of small programs that
are offered under the "Shareware" concept. Each program performs a
simple task, like reporting the size of a group of files, or changing
their attributes. Several of the programs are modeled after utilities
of the Unix operating system. I have tried to keep the interfaces clean
and consistent. As far as I know the programs are bug free.
If you find one or more of these programs useful, I'm asking
that you send me the price of a six-pack ( $5.00 ). Send your check for
five dollars to:
Specialized Software
P.O. Box 508
Jamaica Plain, MA 02130
You may, of course, copy and share these programs, provided
only that you include this documentation with each copy that you
distribute.
Dave Burns
WORDS
Purpose : Reports in alphabetic order all words found in a file,
with the number of times the word was encountered.
Format : WORDS [/S][d:][path]filename
Remarks : The default action of WORDS is to ignore case; all
words are converted to lower case for comparison. If
the parameter /S is included on the command line, WORDS
will be case sensitive. Two words that differ only in
capitalization will be considered ( and counted )
separately.
-----------------------------------------------------
WC
Purpose : Count bytes, words, and lines in a text file.
Format : WC [d:[path]]filename ...
Remarks : If you invoke WC with wildcards in the filename or
names, the bytes, words, and lines in all files that
match the specification will be summed and reported
both individually and in the aggregate.
If you put more than one filespec on the command line,
WC will report subtotals for each filespec as well as
the totals for all files specified.
SIZE
Purpose : Reports the byte size and actual disk space usage of a
file or files.
Format : SIZE [d:[path]]filespec [[d:[path]]filespec...]
Remarks : The amount of space it takes to store a file is
determined by three factors : the number of bytes in
the file, the size of a DOS sector ( which is always
512 bytes ), and the number of sectors in a DOS
allocation cluster for the drive and medium in use.
Every file, no matter how small, uses up at least one
allocation cluster. A double-sided floppy disk, for
example, has a cluster size of two sectors or 1024
bytes. The IBM PC-XT under DOS 2.0 or 2.1 uses a
cluster size of 8 sectors ( 4096 bytes ).
When you list a directory, DOS reports the size of each
file. This size, however, represents only the number of
bytes actually in the file. The actual disk space used
to store the file may be much more.
SIZE reports the actual disk space used by a file or
files, as well as the byte size of the file(s). It may
be invoked with an ambiguous filespec ( wildcards )
and/or with a list of filespecs. SIZE will then report
sums and subtotals for the filespec(s) specified.
Example : SIZE ACCT.DOC
SIZE \USR\SRC\*.C \USR\SRC\*.H
FATTR
Purpose : Allows you to change the attribute of any file.
You can mark any file as hidden, system, or read-only;
or you may remove a file's hidden, system, or read-only
attributes.
Format : FATTR [+|-switches] [[d:[path]]filename ...]
Remarks : FATTR changes the current attribute of a file or files
by adding or subtracting the attributes you specify. If
you specify no attributes to change, FATTR displays the
current attributes of the file or files you specify.
Files may be specified with or without drive and path
specifiers. More than one file specification may be
placed on the command line.
Attributes are specified by typing '+' to add a new
attribute or '-' to remove an existing one, and a
letter or letters to specify the attribute.
These are the attributes you may specify :
R - Read-only
H - Hidden file. File will not show up in a directory.
S - System file. File will not show up in a directory.
A - Archive bit. If this is set on, the DOS command
BACKUP will consider the file to have been updated
since the last backup.
Attributes may be combined by specifying more than one
after the plus or minus sign. For example, to make the
file LAWYERS.DAT both read-only and hidden, use the
command
FATTR +RH LAWYERS.DAT
To "unhide" the above file, but leave it read-only,
type
FATTR -H LAWYERS.DAT
The attribute(s) you want to add or remove must be the
first parameter on the command line. You cannot add and
remove attributes with the same command.
Attempting to add an attribute that a file already has
or remove one that it does not have will result in no
effect.
If you invoke FATTR with no parameters, it will display
the list of attributes you may change.
SPACE
Purpose : Reports free space on a drive or drives. SPACE is
faster and more convenient than doing a directory or
CHKDSK.
Format : SPACE [d [d...]]
Remarks : If SPACE is invoked with no parameters, it reports free
space on the current default drive. Drives may be
specified with a single letter, or with a letter and
colon.
Example : SPACE
SPACE A C D
SPACE B: C:
-----------------------------------------------------
WHEN
Purpose : Reports the current system date and time.
Format : WHEN
Remarks : The output of WHEN may be redirected into a file. This
may be useful in timing events or benchmarking
applications.
-----------------------------------------------------
TOUCH
Purpose : Update a file's date/time stamps to reflect the current
system date and time. No other changes are made to the
file or its directory entry.
Format : TOUCH [d:[path]]filename [[d:[path]filename]...]
Remarks : If a program has several modules, or a manuscript has
several parts, TOUCH may be used to give all the parts
the same date and time. This makes it easier to
identify the parts if necessary ( for example, for
version control ).