home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
DSA2.ZIP
/
DSA.DOC
next >
Wrap
Text File
|
1991-05-31
|
3KB
|
81 lines
Directory Size Analyzer v1.0 for OS/2
Copyright (C) TJD Software 1991
All rights reserved.
This useful program tells you how much space files are occupying in
the current directory and, optionally, in sub directories. It can
report the number of bytes occupied in megabytes (1mb = 1024 x 1024
bytes) or kilobytes (1kb = 1024 bytes) by setting a return code
(sometimes called the ERRORLEVEL) which may be used by, for example, a
REXX program.
Usage:
DSA [path] [switches]
[path] is the drive and/or directory that you wish to process. By
specifying a path of '\' in conjunction with the '/S' switch (see
below), a whole drive may be reported on.
[switches] controls how DSA will report its findings and are
documented below:
/H will display usage instructions.
/R recurse (include sub-directories).
This switch tells DSA that it is to process any subdirectories that
it finds during processing.
/L display LOGICAL space utilisation (default is PHYSICAL).
This switch tells DSA to report the number of occupied bytes that are
LOGICALLY used. Remember that a 1 byte file actually requires MORE
than one byte of disk space because of the way that space is
allocated. If you omit this switch, DSA reports on the actual number
of bytes used.
/M Report in Megabytes.
This switch divides the number of bytes by 1048576 and sets the
return code from the result. It is useful if the number of KILOBYTES
is greater than can be accomodated by the return code (approx 32000).
You will almost certainly need to use this switch if you are
processing entire drives. A result of less than 1Mb is reported as 0.
/K Report in Kilobytes.
This switch divides the number of bytes by 1024 and sets the return
code from the result. It is useful if the number of KILOBYTES is
relatively small. A result of less than 1kb is reported as 0.
If neither the /K nor the /M switch is specified, ERRORLEVEL will be
set to 0 for a successful run.
* 1 MEGABYTE = 1048576 bytes.
** 1 KILOBYTE = 1024 bytes.
/S Suppress displays.
This switch is useful if you are running DSA from, for example, a
REXX program and have used the /K or /M switch to obtain a report.
DSA will process HPFS drives correctly. Note that the switch
character may be specified as '/' or '-'.
TJD Software may be contacted at the following address:
TJD Software,
PO Box 61,
Keighley,
West Yorkshire,
BD20 5DY
United Kingdom.
Those of you who prefer to contact TJD Software electronically (via
MODEM) should ring the following BBSes:
The TJD Software Support BBS (UK) on +44 (0535) 665345.
Contact name Phil Tuck (the SYSOP).
The TJD Software Support BBS (NL) on +31 (01720) 38558.
Contact name Dave Jones (the SYSOP).
The Mainframe BBS (UK) on +44 (0274) 602788.
Contact name Steve Mullarkey (the SYSOP).