home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 21
/
CD_ASCQ_21_040595.iso
/
dos
/
tools
/
dirtot16
/
dirtot.doc
next >
Wrap
Text File
|
1995-02-28
|
67KB
|
1,676 lines
/---------------------------------------------------------------\
| |
| DIRTOT - Directory Totals |
| Version 1.6 02-27-95 |
| Copyright (C) Quincunx Software 1992-95 |
| All rights reserved |
| |
\---------------------------------------------------------------/
CONTENTS
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . 1
NEW FEATURES IN THIS VERSION . . . . . . . . . . . . . . . . 2
INSTALLATION . . . . . . . . . . . . . . . . . . . . . . . . 3
OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . 3
PRINTING . . . . . . . . . . . . . . . . . . . . . . . . . . 4
INITIALIZATION FILE . . . . . . . . . . . . . . . . . . . . . 5
PREDEFINED LAYOUTS . . . . . . . . . . . . . . . . . . . . . 6
COMMAND LINE OPTIONS . . . . . . . . . . . . . . . . . . . . 7
SETTINGS . . . . . . . . . . . . . . . . . . . . . . . . . . 8
AUTOMATIC REPORT FORMATTING . . . . . . . . . . . . . . . . . 15
OTHER FEATURES . . . . . . . . . . . . . . . . . . . . . . . 15
QUESTIONS AND ANSWERS . . . . . . . . . . . . . . . . . . . . 16
TIPS AND TECHNIQUES . . . . . . . . . . . . . . . . . . . . . 19
ERROR MESSAGES . . . . . . . . . . . . . . . . . . . . . . . 21
SUPPORT . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
REGISTRATION . . . . . . . . . . . . . . . . . . . . . . . . 26
ABOUT QUINCUNX SOFTWARE . . . . . . . . . . . . . . . . . . . 28
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
REGISTRATION FORM . . . . . . . . . . . . . . . . . . . . . . 30
DIRTOT Page 1
/---------------------------------------------------------------\
| |
| INTRODUCTION |
| |
\---------------------------------------------------------------/
DIRTOT (pronounced der-tote) provides a view of the space used on
your hard disk that you may never have seen before. It lists the
total space used by each subdirectory PLUS ALL SUBDIRECTORY
LEVELS BELOW IT. It answers questions like "How much space does
my word processor and all its files use?" or "What program is
using all my disk space?". It can help you find places to free
up space for new programs.
DIRTOT has a customizable report format and numerous options.
Its listing can be displayed on the screen, printed, or stored in
a file.
Suppose you have the following subdirectory structure. With any
of several utilities you can find out how much space the files in
EACH subdirectory use. (It may take 8 separate commands to do
so):
\C600 0
\C600\BIN 1996054
\C600\BINB 374879
\C600\HELP 2054723
\C600\INCLUDE 119121
\C600\INCLUDE\SYS 4327
\C600\INIT 19217
\C600\LIB 1234894
Then with a calculator you can add them up to find that 5803215
bytes are used by the compiler and its associated files. With
DIRTOT you give one command:
dirtot \c600
COMPUADD325 4:12p 07-04-94 30,236,672 Free
C:\C600 2 Levels Page 1
Directory Total Alloc Total Used Used Dirs Files Latest
------------ ----------- ----------- --------- ---- ----- --------
C600 6,234,112 5,803,215 0 7 88 07-04-94
├─BIN 2,088,960 1,996,054 1,996,054 21 11-16-93
├─BINB 393,216 374,879 374,879 4 06-14-90
├─HELP 2,088,960 2,054,723 2,054,723 10 08-29-90
├─INCLUDE 319,488 123,448 119,121 1 35 07-31-90
│ └─SYS 40,960 4,327 4,327 5 09-27-89
├─INIT 24,576 19,217 19,217 3 07-04-94
└─LIB 1,318,912 1,234,894 1,234,894 15 02-10-92
DIRTOT 1.6 Shareware (C) 1992-95 Quincunx Software All rights reserved
Registered to Tom Caswick Barneveld, WI
DIRTOT Page 2
The first line of the heading shows the Volume ID of the disk
drive, the time and date the listing was created, and the number
of bytes free on the disk. The second heading line shows the
complete specification of the path you entered on the command
line, and the maximum number of levels of subdirectories in that
path. (In the example C600 is level 0, INCLUDE is at level 1,
and SYS is at level 2.)
The columns show the Directory names in a tree format, the Total
space Allocated in clusters to each subdirectory plus all levels
below it, the Total space Used by each subdirectory plus all
levels below it, the space Used by each subdirectory
independently, the total number of subDirectories below each
directory, the total number of Files in each subdirectory plus
all levels below it, and the date of the Latest file in each.
In the first line you see that directory C600 and all its
subdirectories were allocated 6,234,112 bytes, although they
actually used 5,803,215 bytes. (The remaining bytes are used in
system overhead.) Directory C600 by itself used no space at all.
There are 7 subdirectories below this point, and a total of 88
files in the entire structure. The most recently changed file in
this subdirectory structure was changed on 07-04-94.
/---------------------------------------------------------------\
| |
| NEW FEATURES IN THIS VERSION |
| |
\---------------------------------------------------------------/
Version 1.6 2-27-95:
- Predefined layouts in initialization file
- Settings for printer columns and lines per page
- Page numbers on printed reports
- Usage history
- Minor fixes: Get volume ID in OS/2 DOS session, support
volumes larger than 2 Gigabytes.
Version 1.5 7-24-94:
- Customizable report format
- Automatic report formatting
- 5 sort orders
- Reports total space allocated by clusters
- Reports date of most recent file
- Reports total space needing backup
- Default settings stored in initialization file
- Expanded capacity, over 10,000 subdirectories per drive
- Press Esc to cancel at any time
- Will not send non-printable characters in directory and
volume names to the printer
DIRTOT Page 3
/---------------------------------------------------------------\
| |
| INSTALLATION |
| |
\---------------------------------------------------------------/
A runnable copy of DIRTOT consists of the files DIRTOT.EXE,
DIRTOT.INI, and DIRTOT.REG. It can be run from wherever it is,
or you can copy it to your hard disk. We recommend that you put
it in a subdirectory with other utilities and which is in the DOS
PATH. For example,
copy dirtot.exe c:\utility
copy dirtot.ini c:\utility
copy dirtot.reg c:\utility
DIRTOT requires any PC running DOS 3.0 or later. It has no
special memory or display requirements.
If running on a network, the registration data file DIRTOT.REG
must be in a subdirectory to which you have write access.
/---------------------------------------------------------------\
| |
| OPERATION |
| |
\---------------------------------------------------------------/
DIRTOT is run from the DOS command line. The command
dirtot
alone will produce a full report of all subdirectories on the
current drive. It will pause after each screen; you can press
any key to continue.
You can specify the drive:
dirtot d:
or you can specify a particular subdirectory:
dirtot c:\wp51
You can also produce multiple reports from a single command:
dirtot \c600 d:\borlandc c:\windows wp51 e:
There are several different predefined report layouts available.
(See the Predefined Layouts section for details.) They are
specified by name enclosed in brackets []. To produce a report
with the largest directories first:
DIRTOT Page 4
dirtot [big]
or to find out how many kilobytes need to be backed up:
dirtot d: [backup]
DIRTOT has numerous options to customize its output. (See the
Settings section for details.) Type your options anywhere on the
command line. For a brief listing:
dirtot \c600 /b
For a listing of the first level, indented 4 spaces, in
kilobytes, sorted by total size, of all subdirectories on drive
D:
dirtot /l1 /i4 /nk /st d:
Or use the equivalent command:
dirtot /l1i4nkst d:
You can use both predefined layouts and command line options at
the same time. To run the "backup" report but with numbers in
megabytes:
dirtot d: [backup] /nm
/---------------------------------------------------------------\
| |
| PRINTING |
| |
\---------------------------------------------------------------/
To send the output to the printer, use the DOS redirection
feature:
dirtot c: >prn
DIRTOT detects that its output is not going to the screen, so it
does NOT pause after each screen full.
Be sure to set your printer for a fixed pitch font so the columns
will be aligned.
You can also send the output to a file this way, then later
incorporate the file into some other report:
dirtot c: >c:\wp\reports\c_totals.txt
DIRTOT Page 5
/---------------------------------------------------------------\
| |
| INITIALIZATION FILE |
| |
\---------------------------------------------------------------/
DIRTOT reads its default settings from the text file DIRTOT.INI.
You can edit this file to set normal operation to your
preferences, then use command line options for temporary changes.
DIRTOT searches for its .INI file in the current directory first,
then in the directory where DIRTOT.EXE is located. If DIRTOT.INI
is not found in either location a warning message is displayed
and operation continues using internal default settings.
You may use any text editor to change DIRTOT.INI. For example,
to use the editor which comes with DOS version 5 and later,
change to the directory containing DIRTOT.INI and enter the
command:
edit dirtot.ini
The initialization file format consists of key words followed by
an equal sign (=) followed by the value. Key words may be in
upper, lower or mixed case. White space is ignored, and
everything on the line after a semicolon (;) is a comment.
Example:
Indent = 2 ; columns to indent each level
Three types of values are supported:
On/Off - these are true/false values. You may enter ON, TRUE,
or a non-zero number, or OFF, FALSE, or 0.
Example: Commas = On
Numbers - these are groups of decimal digits.
Example: MaxLevel = 31
Strings - these are groups of any characters enclosed in quotes.
Example: Format = "NC%TDFB"
Most settings can be done from either the initialization file or
the command line. The command line takes precedence.
The first section of the initialization file, up to the first
line beginning with a bracket [, is the defaults. After that are
several sections of Predefined Layouts.
DIRTOT Page 6
/---------------------------------------------------------------\
| |
| PREDEFINED LAYOUTS |
| |
\---------------------------------------------------------------/
DIRTOT comes with several different report styles set up in its
initialization file. You can select one by typing its name on
the command line, enclosed in brackets []. The Predefined
Layouts included with this version are:
[big] largest directories first, single level
[max] maximum information DIRTOT can report
[backup] files needing backup
[latest] most recently changed first
[alt] an alternate appearance
[notot] no totals, a very simple report
[usedfree] brief list of space used and space free, best
used on multiple drives
You can customize these or add your own. Edit the file
DIRTOT.INI and look near the end. Each Predefined Layout section
begins with a name in brackets, and ends at the next name in
brackets. Here are the [big] and [max] Predefined Layouts:
[big] ; largest first, single level
Format = "NC%T%DF"
MaxLevel = 1
Sort = "C"
NumberFormat = "K"
[max] ; maximum information available
Format = "NC%AT%UDF%LB%"
MaxLevel = 31
Sort = "N"
Notice that only those settings which are different from the
defaults NEED to be included, but any setting MAY be included.
To add a new Predefined Layout just start it with a name in
brackets and list the settings you want. Here is how a layout
named [Mine], like the command line option example in the
Operation section, could be added:
DIRTOT Page 7
[big] ; largest first, single level
Format = "NC%T%DF"
MaxLevel = 1
Sort = "C"
NumberFormat = "K"
[Mine]
maxlevel=1
indent=4
numberformat="k"
sort="t"
[max] ; maximum information available
Format = "NC%AT%UDF%LB%"
MaxLevel = 31
Sort = "N"
/---------------------------------------------------------------\
| |
| COMMAND LINE OPTIONS |
| |
\---------------------------------------------------------------/
Command line options are used to adjust the settings for only one
run. You can use the command line to experiment and find your
preferences, then edit the .INI file to retain your preferences
for later runs.
Command line options may be preceded by a dash (-) or a
slash (/), may be entered in upper or lower case, and multiple
options may be combined in one string. Options may appear
anywhere on the command line.
The initialization file determines the value of options which are
not explicitly set on the command line.
On/Off options are turned Off by following the option letter with
a dash or minus (-). For example, commas are normally On. To
turn commas Off:
dirtot -c-
DIRTOT Page 8
/---------------------------------------------------------------\
| |
| SETTINGS |
| |
\---------------------------------------------------------------/
The values of settings indicated below are those originally in
the initialization file when it was distributed. Your settings
may differ. The first line of each setting is shown in the
following format:
Initialization Command Description
file line
entry option
-------------- ------- ----------------------------------
Ascii = Off -a use standard ASCII characters
This setting substitutes the plain characters '+', '-', '|',
and '\' for the extended graphic characters in the tree
list. Also a '?' is substituted for any extended characters
in directory names. Its main use is for printing a report
on a printer that does not support the extended characters.
C600
+-BIN
+-BINB
+-HELP
+-INCLUDE
| \-SYS
+-INIT
+-LIB
\-SOURCE
+-DOC
\-STARTUP
\-DOS
Brief = Off -b Brief output
This setting produces a report with no headings and no
copyright notice.
Commas = On -c include Commas in numbers
The 'c' setting causes numbers to be displayed with
thousands separators. (This setting may be overridden by
Automatic Report Formatting. See that section for details.)
DIRTOT Page 9
Format = "NCTUDFL" -fxxx report Format
Enter a list from the following letters:
N - directory Name in tree format
C - total cluster space alloCated for this directory
and all children
T - Total space used by this directory and all
children
A - cluster space Allocated for this directory
U - space Used by this directory
D - number of child Directories
F - number of Files in this directory and all children
L - date of Latest file in this directory and all
children
B - total space needing Backup (archive bit set) in
this directory and all children
E - Extended directory name
% - after C, T, F - percent of previous level
after B - percent of Total space used
S - free Space on the drive, only useful when doing a
brief, level 0 report
This setting allows you to totally customize DIRTOT's
output. Some examples:
dirtot /fntf \c600
Directory Total Used Files
--------- ----------- -----
C600 5,803,186 88
├─BIN 1,996,054 21
├─BINB 374,879 4
├─HELP 2,054,723 10
├─INCLUDE 123,448 35
│ └─SYS 4,327 5
├─INIT 19,188 3
└─LIB 1,234,894 15
dirtot /fcabn \c600
Total Alloc Allocated Backup Directory
----------- --------- ------ ---------
6,234,112 0 23,020 C600
2,088,960 2,088,960 3,832 ├─BIN
393,216 393,216 0 ├─BINB
2,088,960 2,088,960 0 ├─HELP
319,488 278,528 0 ├─INCLUDE
40,960 40,960 0 │ └─SYS
24,576 24,576 19,188 ├─INIT
1,318,912 1,318,912 0 └─LIB
DIRTOT Page 10
dirtot /fncatudflb \c600
Directory Tot Alloc Allocated Tot Used Used Dirs Files Latest Backup
--------- --------- --------- --------- --------- ---- ----- -------- ------
C600 6,234,112 0 5,803,186 0 7 88 07-13-94 23,020
├─BIN 2,088,960 2,088,960 1,996,054 1,996,054 21 11-16-93 3,832
├─BINB 393,216 393,216 374,879 374,879 4 06-14-90 0
├─HELP 2,088,960 2,088,960 2,054,723 2,054,723 10 08-29-90 0
├─INCLUDE 319,488 278,528 123,448 119,121 1 35 07-31-90 0
│ └─SYS 40,960 40,960 4,327 4,327 5 09-27-89 0
├─INIT 24,576 24,576 19,188 19,188 3 07-13-94 19,188
└─LIB 1,318,912 1,318,912 1,234,894 1,234,894 15 02-10-92 0
Use the following to squeeze the maximum data from DIRTOT.
Depending on your disk layout, it may not fit on your
screen:
dirtot /fnc%at%udf%lb% \c600
Directory TotAlc % Alloc TotUsd % Used D Fi % Latest Bac %
--------- ------ --- ------ ------ --- ------ - -- --- -------- --- ---
C600 6,088K 0 5,667K 0 7 88 07-13-94 22K <1
├─BIN 2,040K 34 2,040K 1,949K 34 1,949K 21 24 11-16-93 4K <1
├─BINB 384K 6 384K 366K 6 366K 4 5 06-14-90 0 0
├─HELP 2,040K 34 2,040K 2,007K 35 2,007K 10 11 08-29-90 0 0
├─INCLUDE 312K 5 272K 121K 2 116K 1 35 40 07-31-90 0 0
│ └─SYS 40K 13 40K 4K 4 4K 5 14 09-27-89 0 0
├─INIT 24K <1 24K 19K <1 19K 3 3 07-13-94 19K 100
└─LIB 1,288K 21 1,288K 1,206K 21 1,206K 15 17 02-10-92 0 0
For a style different from the tree format, use 'e' instead
of 'n':
dirtot /feu \c600
Directory Used
------------------- ---------
C:\C600 0
C:\C600\BIN 1,996,054
C:\C600\BINB 374,879
C:\C600\HELP 2,054,723
C:\C600\INCLUDE 119,121
C:\C600\INCLUDE\SYS 4,327
C:\C600\INIT 19,188
C:\C600\LIB 1,234,894
DIRTOT Page 11
For import into another application you may wish to turn off
the headings and commas:
dirtot /bc-feu \c600
C:\C600 0
C:\C600\BIN 1996054
C:\C600\BINB 374879
C:\C600\HELP 2054723
C:\C600\INCLUDE 119121
C:\C600\INCLUDE\SYS 4327
C:\C600\INIT 19188
C:\C600\LIB 1234894
When entered on the command line, the -f option cannot be
directly followed by other options. Example:
-fncatudfbi4l2 *** INVALID ***
-fncatudfb -i4l2 OK
See also the section on Automatic Report Formatting.
HeadPerPage = On -h Heading on each screen or page
This setting displays column headings at the top of each
screen or page. If it is set to off, the column headings
will still appear once at the beginning of the report.
Indent = 2 -i## columns to Indent each level
Enter a number from 0 to 12. This setting controls the
appearance of the directory tree listing. Example:
dirtot -i4 \c600
C600
├───BIN
├───BINB
├───HELP
├───INCLUDE
│ └───SYS
├───INIT
├───LIB
└───SOURCE
├───DOC
└───STARTUP
└───DOS
(This setting may be overridden by Automatic Report
Formatting. See that section for details.)
DIRTOT Page 12
MaxLevel = 31 -l## maximum Levels to show
Enter a number from 0 to 31. This setting limits the number
of directory tree levels displayed. Note that all lower
levels are scanned and counted regardless of this setting.
Zero shows only one line about the topmost level. One shows
only the first level subdirectories, two shows two levels of
subdirectories, etc.
NumberFormat = "B" -nx Number format
Enter the letter B, K or M. This setting causes numbers to
be displayed in Bytes, in Kilobytes (1024 bytes) rounded to
the nearest kilobyte, or in Megabytes (1,048,576 bytes)
rounded to the nearest one-tenth megabyte. For example
119,121 shows as 116K or .1M. (This setting may be
overridden by Automatic Report Formatting. See that section
for details.)
Pause = On -p Pause each screen full
When the listing appears on the screen, DIRTOT pauses after
each screen for you to press a key. Turning this setting
off causes the output to scroll continuously. (If the
output is redirected to the printer or a file DIRTOT does
not pause regardless of this setting.)
Quiet = Off -q Quiet mode
This setting eliminates the "Totaling..." and "Printing..."
displays and the beep in error messages.
(n/a) -r enter Registration data
Specifying this option causes DIRTOT to ask you for your
registered name and location, and registration number. You
must first obtain a registration number by paying the
registration fee. When this option is selected no report is
produced and any other options are ignored. See the section
on Registration for details.
Sort = "N" -sx Sort order
Enter N, C, T, L, or U. This setting causes each level of
subdirectories to be sorted by either directory Name
(ascending), total space alloCated (descending), Total space
used (descending), Latest date (descending), or Unsorted.
DIRTOT Page 13
Branches = On -t Tree branches
Turning this setting off removes the connecting lines in the
tree display:
C600
BIN
BINB
HELP
INCLUDE
SYS
INIT
LIB
SOURCE
DOC
STARTUP
DOS
(n/a) -u Usage history
Specifying this option causes a brief account of your use of
DIRTOT to be displayed. When this option is selected no
report is produced and any other options are ignored.
Usage History: Run 28 times - In use 37 days
Month 12-94 01-95 02-95
----- ----- -----
Runs 19 7 2
This sample report indicates you have run this copy of
DIRTOT a total of 28 times - 19 times in December, 7 times
in January, and 2 times in February. This copy was first
used 37 days ago. This information can be helpful when
deciding whether DIRTOT is worth registering. Keep in mind
that a utility such as DIRTOT is not something you use every
day. Using it once a month would be typical.
PrintCols = 80 -w Wide printer (132 columns)
This setting specifies the number of columns your printer
can print in the current font. DIRTOT does not send any
printer set up codes - you should ensure that the printer is
set up as desired before starting DIRTOT. Use a fixed pitch
font to keep the columns aligned. This setting makes no
difference for narrower reports.
DIRTOT Page 14
PrintLines = 60 (n/a) printer lines per page
This setting specifies the number lines to use on each page
of printed reports. DIRTOT sends the Form Feed character
(Hex 0C) to move to the beginning of the next page.
;Columns = 80 (n/a) screen columns
This setting is normally disabled (commented out) in the
.INI file, in which case DIRTOT uses the current screen
width. It can be used in special situations where DIRTOT
cannot correctly determine the number of columns on your
screen.
;Rows = 25 (n/a) screen rows
This setting is normally disabled (commented out) in the
.INI file, in which case DIRTOT uses the current screen
height. It can be used in special situations where DIRTOT
cannot correctly determine the number of rows on your
screen.
Path = "" (n/a) drives or directories to report
You normally specify the drives and/or directories to report
on the command line. If you do not specify any, DIRTOT
reports on the current drive. Use this setting if you want
DIRTOT to always report on a certain list of drives and/or
directories (when you don't put any on the command line).
You may enter multiple drives/directories separated by
spaces, commas, or semicolons. Examples:
path = "C:,D:,E:"
Path="D:\FRED"
PATH = "\c600 d:\borlandc c:\windows wp51 e:"
(n/a) -z display debug output
This option causes the display of internal information only
useful to the author.
(n/a) -? show Help info
This displays a help screen listing the command line
options.
DIRTOT Page 15
/---------------------------------------------------------------\
| |
| AUTOMATIC REPORT FORMATTING |
| |
\---------------------------------------------------------------/
DIRTOT automatically adjusts the width of its report to fit on
the screen or printer. To accomplish this while still providing
as close as possible to the specific formatting features you
requested, DIRTOT goes through a sequence of steps, in order,
until the report fits. These steps include:
- reducing the number of levels that are shown fully indented
- reducing the number of characters each level is indented
- shrinking the titles of some columns
- reducing the space between columns
- showing numbers in Kilobytes
- removing commas
- showing numbers in Megabytes
Note that this automatic formatting will sometimes override your
settings for Indent, Number format, and Commas.
/---------------------------------------------------------------\
| |
| OTHER FEATURES |
| |
\---------------------------------------------------------------/
DIRTOT indicates subdirectories with Hidden or System attributes
by displaying their names in lower case.
DIRTOT replaces unprintable control characters in directory or
volume names with a question mark (?). If the Ascii setting is
turned on, any extended characters will also be replaced.
DIRTOT adapts to the number of rows and columns on your screen.
It will pause after every 25, 43, 50, or other number of lines.
It will display a wider report if your screen shows more columns.
DIRTOT provides National Language Support. If you have set up
DOS 3.0 or later for a specific country (by including COUNTRY= in
your CONFIG.SYS file), the time, date, thousands separator and
decimal separator will adapt to your country's standards.
DIRTOT Page 16
/---------------------------------------------------------------\
| |
| QUESTIONS AND ANSWERS |
| |
\---------------------------------------------------------------/
Why do DIRTOT and CHKDSK report different amounts of space used
on the disk?
CHKDSK counts the unused space at the end of each file - the
rest of the "Allocation Unit" or "Cluster", and counts hidden
files separately. DIRTOT can count the allocated space and/or
the actual space each file uses, as reported in a directory
listing. If you add CHKDSK's amounts for hidden and user
files it should match DIRTOT's amount for Total Allocated.
Some versions of CHKDSK may report one more file, because they
count the volume ID as a hidden file.
Why do DIRTOT and DIR report different numbers of files in a
subdirectory?
DIR counts the '.' and '..' DOS housekeeping files, but
ignores any Hidden files. DIRTOT ignores the '.' and '..'
files, and counts any Hidden files.
Why do some numbers show as 0K and others as just plain 0?
Numbers in Kilobytes and Megabytes, and percents, are rounded
to the nearest value, but its often important to know whether
you have a very small number or exactly zero. 0K means the
actual value is between 1 and 511 inclusive. .0M means the
actual value is between 1 and 52,428 inclusive. <1 (less than
one) is used in percent displays when the actual value is
between 0% and 0.5% exclusive. Just plain 0 means the actual
value is exactly zero.
Why does DIRTOT take so long to display its results?
In order to come up with its totals DIRTOT must read the
entire directory structure of your hard disk. The final grand
total appears on the very first line, and the width of the
output is unknown until the deepest subdirectory has been
scanned. Quincunx Software has done its best to minimize this
time. Since the vast majority of the time is spent in DOS
waiting for the disk, we believe DIRTOT is as fast as or
faster than any other utility that reads the entire directory
structure.
My disk has 19 levels of subdirectories on it. How are you going
to handle that?
DIRTOT Page 17
The listing expands in width until it fills the screen, then
additional levels of subdirectories are shown in a column with
a level number:
Directory Total Alloc Total Used Files
------------------ ----------- ----------- -----
DIRECTOR.001 0 0 0
└─A 0 0 0
└─B 0 0 0
└─C 0 0 0
└─D 0 0 0
└─E 0 0 0
└─F 0 0 0
7> G 0 0 0
8> H 0 0 0
9> I 0 0 0
10> J 0 0 0
11> K 0 0 0
12> L 0 0 0
13> M 0 0 0
14> N 0 0 0
15> O 0 0 0
16> P 0 0 0
17> Q 0 0 0
18> R 0 0 0
19> S 0 0 0
Exactly when this happens depends on the settings for report
format, indent and number format.
Just what does the percent column mean? Shouldn't it add up to
100%?
There are two types of percent columns. First, the easy one:
Percent Backup is the Backup column (number of bytes needing
backup) divided by the Total Used column IN THAT SAME REPORT
LINE. In the example below the BIN directory has 3,832 bytes
needing backup out of 1,996,054 used, equaling 0.19%, shown as
"<1", less than one percent. In the INIT directory all 19,190
bytes need backup, 100% of that directory. But for the
overall C600 directory structure, less than one percent need
backup. (The Total Used column need not be reported to get
percent Backup, the figures are still available internally.)
DIRTOT Page 18
Directory Total Used Backup %
--------- ----------- ------ ---
C600 5,803,188 23,022 <1
├─BIN 1,996,054 3,832 <1
├─BINB 374,879 0 0
├─HELP 2,054,723 0 0
├─INCLUDE 123,448 0 0
│ └─SYS 4,327 0 0
├─INIT 19,190 19,190 100
└─LIB 1,234,894 0 0
The second type of percent applies to Total Allocated, Total
Used, or Files. The percent column indicates PERCENT OF THE
PREVIOUS DIRECTORY LEVEL TOTAL. In the example below the SYS
directory uses 4% of the space used by INCLUDE and SYS, and
INCLUDE and SYS uses 2% of the space used by the whole C600
structure. The BIN directory contains 34% of the space used
by the C600 structure. The first line of the report will
never show anything for these percents, since there is no
previous level to reference.
Directory Total Used %
--------- ----------- ---
C600 5,803,188
├─BIN 1,996,054 34
├─BINB 374,879 6
├─HELP 2,054,723 35
├─INCLUDE 123,448 2
│ └─SYS 4,327 4
├─INIT 19,190 <1
└─LIB 1,234,894 21
The only occasion when things would add up to 100% is if the
previous level contained no files and you added the percents
for just one level. From above that would be
BIN+BINB+HELP+INCLUDE+INIT+LIB, but it still won't quite add
up because the figures are rounded.
I set Indent to 8 but the report is only indenting 2. What's
wrong?
Automatic Report Formatting is overriding your setting in
order to fit everything across the page. To produce an indent
of 8 you will have to give up one (or more) columns or use a
wider display or printer. The same thing can happen with
Number format and Commas.
DIRTOT Page 19
/---------------------------------------------------------------\
| |
| TIPS AND TECHNIQUES |
| |
\---------------------------------------------------------------/
To produce the briefest possible listing of the space used and
free on several drives use the Brief, max Level 0, and Megabyte
options with a report Format of Name, Total used (or total
alloCated if you prefer), and free Space:
dirtot /blnmfnts c: d: e:
C:\ 127.7M 23.2M
D:\ 114.1M 8.6M
E:\ 23.4M 1.2M
The predefined layout [usedfree] is set up to do this
automatically. You can even preset your list of drives. Edit
the DIRTOT.INI file. Find the section heading [usedfree], and
the Path = "" immediately after it. Put your drives in the list,
for example Path = "c: d: e:". Then you can just type:
dirtot [usedfree]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
To get a good picture of the space used by the various major
programs on your system, use the Level 1 option, the Sort by
Total used option, and a report format including Percent:
dirtot /l1st /fnt% c:\
Directory Total Used %
-------------- ----------- ---
C:\ 205,625,443
├─BC4 43,870,703 21
├─WINDOWS 22,236,026 11
├─ZAPP 9,304,432 5
├─DOS 6,085,019 3
├─C600 5,803,188 3
├─WP51 3,672,475 2
├─UTILITY 2,336,327 1
.
.
.
├─DIRTOT 797,437 <1
├─TEST 107,414 <1
└─TEMP 0 0
The predefined layout [big] is set up to do this automatically.
DIRTOT Page 20
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You can cancel DIRTOT at any time by pressing "Esc". The report
will say "*** Cancelled" at the end.
DIRTOT Page 21
/---------------------------------------------------------------\
| |
| ERROR MESSAGES |
| |
\---------------------------------------------------------------/
INITIALIZATION FILE ERRORS:
*** INI file DIRTOT.INI line ##: ...
...Section not found
This usually occurs when you misspell a predefined layout on
the command line.
...File not found
DIRTOT could not find its initialization file in either the
current directory or the directory where DIRTOT.EXE is
located. This is a warning only. DIRTOT will run with its
default and command line settings.
It is also possible that another program has opened the .INI
file in a non-shared mode.
...Invalid TRUE/FALSE value
The entry on the line indicated must be set to either "TRUE",
"ON", a non-zero number, or "FALSE", "OFF", 0.
...Unknown symbol
The first word on the line indicated was not found in DIRTOT's
table of .INI file entries. It was either misspelled or a
comment indicator (;) is missing.
...Error reading file
A disk error occurred while reading the .INI file.
...Invalid type
...Out of memory
...Section too large
...Unknown error code
These last four error messages should not occur in this
program. Please report these problems to Quincunx Software.
DIRTOT Page 22
SETTINGS ERRORS:
*** Unknown option 'x'
You entered a command line option which DIRTOT did not
recognize, or combined options in a single string in an
invalid manner.
*** No report format specified
The "Format" entry in the .INI file or the command line option
'F' were followed by a blank string.
*** Invalid format character 'x'
The "Format" entry in the .INI file or the command line option
'F' contained an invalid character.
*** Indent must be 0 to 12
The "Indent" entry in the .INI file or the command line option
'I' specified an invalid value.
*** Maxlevel must be 0 to 31
The "MaxLevel" entry in the .INI file or the command line
option 'L' specified an invalid value.
*** Number format must be 'B', 'K', or 'M'
The "NumberFormat" entry in the .INI file or the command line
option 'N' specified an invalid value.
*** Sort order must be 'N', 'T', 'C', 'L' or 'U'
The "Sort" entry in the .INI file or the command line option
'S' specified an invalid value.
*** Percent must follow 'C', 'T', 'F' or 'B'
The percent format specifier in the report format setting can
only immediately follow one of the indicated columns.
RUN TIME ERRORS:
*** Path xxx not found
A subdirectory you entered on the command line does not exist.
Maybe you misspelled it, or forgot to put brackets around a
predefined layout name. Try again.
If you are running on a network or under a multitasking system
there is a slight chance that another program or user removed
DIRTOT Page 23
a directory between the time that DIRTOT first detected it and
then went back to scan it.
*** Invalid drive x:
The drive portion of an entry on the command line is not
valid.
*** Internal storage full, complete path not scanned
There is no more conventional memory available to store
subdirectories. DIRTOT will report what it has, but it did
not cover your entire disk.
DIRTOT has room to store over 10000 subdirectories, so to get
this message you either must have a VERY large disk or are
running DIRTOT with limited available memory. If you actually
have more than 10000 subdirectories, let Quincunx Software
know so we can consider producing an expanded version.
*** More than #### subdirs, complete directory not scanned
where #### is a number on the order of one thousand. One
directory contained more than that many subdirectories at the
next level. DIRTOT will report the rest of the disk
correctly. Let Quincunx Software know so we can consider
producing an expanded version.
*** Only 32 levels supported
A subdirectory structure exists which contains more than 32
levels of directories. This is not normally possible under
DOS. Please report this problem to Quincunx Software.
REGISTRATION FILE ERRORS:
In each of the following messages where an error code number (#)
is shown, the number is the DOS error code. Common codes are:
2 - File not found
5 - Access denied
*** Error # opening registration data file DIRTOT.REG
Be sure DIRTOT.REG is located in the same directory as
DIRTOT.EXE. This message will usually be followed by "***
Invalid registration data in DIRTOT.REG" and "*** UNREGISTERED
copy - Registration data invalid".
DIRTOT Page 24
*** Error # creating registration data file DIRTOT.REG
*** Error # reading registration data file DIRTOT.REG
*** Error # writing registration data file DIRTOT.REG
*** Error # closing registration data file DIRTOT.REG
A disk or network access problem is occurring.
*** Invalid registration data in DIRTOT.REG
*** UNREGISTERED copy - Registration data invalid
The file DIRTOT.REG contains invalid info or is from the wrong
version of DIRTOT. This usually occurs if DIRTOT.REG was
deleted or not found and automatically recreated. Be sure
DIRTOT.REG is located in the same directory as DIRTOT.EXE, or
reinstall from your original copy.
*** Invalid registration data
This error occurs if you enter your registration info
incorrectly. Try again and be sure you enter the exact
letters and numbers shown on your registration data sheet. If
you cannot resolve the problem contact Quincunx Software.
DIRTOT Page 25
/---------------------------------------------------------------\
| |
| SUPPORT |
| |
\---------------------------------------------------------------/
The policy of Quincunx Software is to provide a reasonable amount
of free support to all users, registered or not. You can reach
us by:
E-Mail:
75240.2051@compuserve.com
FAX:
1-608-924-5841 (This is a shared voice/fax line. Ignore the
answering machine and start your fax.)
BBS:
Leave a message to Tom Caswick on the Madison PC User's Group
BBS at 1-608-233-0286
U.S. Mail:
Quincunx Software
8178 Aldgwen Rd.
Barneveld, WI 53507
Voice phone:
1-608-924-5841 (10 am to 6 pm Central time, Monday through
Friday). All calls are screened by answering machine. If you
say you are calling about DIRTOT we will probably answer
immediately. If you don't leave a message you will probably
never reach us.
When writing be sure to specify the version of DIRTOT, give as
much detail about the problem as seems reasonable, and give us at
least one way that we can reach you.
DIRTOT Page 26
/---------------------------------------------------------------\
| |
| REGISTRATION |
| |
\---------------------------------------------------------------/
DIRTOT is distributed as Shareware. You are encouraged to give
copies to your friends, co-workers, and user groups, and upload
copies to Bulletin Board Systems. We strongly recommend that you
distribute the original authenticity verified ZIP file. All
copies must be unaltered and include at least the files
DIRTOT.EXE, DIRTOT.INI, DIRTOT.REG, and DIRTOT.DOC. The author,
Quincunx Software, retains all other rights to the program.
IF YOU HAVE REGISTERED DIRTOT, DO NOT GIVE AWAY COPIES OF YOUR
DIRTOT.REG FILE. IT CONTAINS YOUR NAME, ADDRESS, AND
REGISTRATION NUMBER. Only distribute the original ZIP file.
The latest version of DIRTOT will always be available on
Compuserve, in the PC Utilities/Systems forum, DOS Utilities
section, and on the Madison PC User's Group BBS at 1-608-233-
0286.
Non-registered users of this software are granted a limited
license to make an evaluation copy for trial use on a private,
non-commercial basis, for the express purpose of determining
whether DIRTOT is suitable for their needs. At the end of this
trial period, you must either register your copy or discontinue
using DIRTOT.
Should you decide to use DIRTOT, or keep it on your hard disk for
future use, you are obligated to pay a registration fee of $10.00
(Ten U.S. Dollars). Send payment in check or money order to:
Quincunx Software
8178 Aldgwen Rd.
Barneveld, WI 53507
You will receive your personalized registration data by return
mail.
In order to encourage users to register, DIRTOT incorporates a
Registration Reminder system. The end of each report lists how
long this copy has been in use and how many times it has been
run:
UNREGISTERED copy - Run 2 times - In use 1 day
After 30 days a longer reminder will begin appearing randomly.
The longer you have used DIRTOT without registering it, the more
frequent these reminders will become.
To eliminate these annoying reminder messages, to help produce
more and better versions of DIRTOT, and to satisfy your
DIRTOT Page 27
conscience by paying for what you are using, please send in your
registration fee.
When you receive your registration information you need to enter
it into DIRTOT as shown in the following example:
dirtot /r
Enter Registered Name : Tom Caswick
Enter Registered Location : Barneveld, WI
Enter Registration Number : 12345
Registration data updated.
Run DIRTOT with the /r command line option. It will request the
name, location, and number that were supplied to you. You must
enter these exactly as provided, except that spacing, upper/lower
case, and punctuation do not matter. If everything is correct
your registration will be accepted. The end of all future
reports will list:
Registered to Tom Caswick Barneveld, WI
instead of the Registration Reminder. Your registration data is
stored in the file DIRTOT.REG. Do not give copies of this file
to anyone, or your name and address will begin to appear on
DIRTOT reports around the world. Distributing your registration
data is equivalent to software piracy, and Quincunx Software will
take legal action against you.
Whether you register or not, please notify Quincunx Software of
any problems you encounter using DIRTOT, and of any improvements
you would like to see.
Quantity discounts and site licenses are available. Call or
write for information.
Companies and organizations that provide software duplication
services may include DIRTOT in their catalog and provide copies
for a reasonable duplication fee, provided the purchaser is
notified that no portion of the fee goes to the Shareware author
and that the purchaser is still obligated to register.
Quincunx Software hereby disclaims all warranties relating to
this software, whether express or implied, including without
limitation any implied warranties of merchantability or fitness
for a particular purpose. Quincunx Software will not be liable
for any special, incidental, consequential, indirect or similar
damages due to loss of data or any other reason, even if Quincunx
Software or an agent of Quincunx Software has been advised of the
possibility of such damages. In no event shall Quincunx
Software's liability for any damages ever exceed the price paid
for the license to use this software, regardless of the form of
the claim.
DIRTOT Page 28
/---------------------------------------------------------------\
| |
| ABOUT QUINCUNX SOFTWARE |
| |
\---------------------------------------------------------------/
Quincunx Software was founded in 1983. We have provided
consulting and contract programming services to numerous large
and small companies, including IBM, Citicorp, and Sears. We have
special expertise in C programming, communication, and the
S.W.I.F.T. international electronic funds transfer network.
Tom Caswick, owner and president of Quincunx Software, has over
20 years of experience programming a wide range of computers,
from mainframes to microcontrollers.
DIRTOT is Quincunx Software's first Shareware product. It was
originally released in April 1992.
DIRTOT Page 29
/---------------------------------------------------------------\
| |
| INDEX |
| |
\---------------------------------------------------------------/
.0M . . . . . . . . . . . . . . . . . . . . . . . . 16
'..' . . . . . . . . . . . . . . . . . . . . . . . 16
'.' . . . . . . . . . . . . . . . . . . . . . . . . 16
<1 . . . . . . . . . . . . . . . . . . . . . 10, 16-19
0K . . . . . . . . . . . . . . . . . . . . . . . . 16
Allocation Unit . . . . . . . . . . . . . . . . . . 16
Archive . . . . . . . . . . . . . . . . . . . . . . . 9
ASCII . . . . . . . . . . . . . . . . . . . . . . 8, 15
Attributes . . . . . . . . . . . . . . . . . . . 9, 15
Automatic report formatting . . . 2, 8, 11, 12, 15, 18
Backup . . . . . . . . . . . . . . . . . . . . . . . 9
BBS . . . . . . . . . . . . . . . . . . . . . . 25, 26
Beep . . . . . . . . . . . . . . . . . . . . . . . 12
Brief . . . . . . . . . . . . . . . . . . . . . . 8, 19
Cancel . . . . . . . . . . . . . . . . . . . . . 2, 20
Child directories . . . . . . . . . . . . . . . . . . 9
CHKDSK . . . . . . . . . . . . . . . . . . . . . . 16
Cluster . . . . . . . . . . . . . . . . . . . 2, 9, 16
Columns . . . . . . . . . . . . . . . . . 2, 11, 13, 15
Command line . . . . . . 2, 4, 5, 7, 8, 11, 14, 21, 22
Commas . . . . . . . . . . . . . . . . . . . 8, 14, 15
Compuserve . . . . . . . . . . . . . . . . . . . . 26
CONFIG.SYS . . . . . . . . . . . . . . . . . . . . 15
Default . . . . . . . . . . . . . . . . . . . 2, 5, 21
DIR . . . . . . . . . . . . . . . . . . . . . . . . 16
Disclaimer . . . . . . . . . . . . . . . . . . . . 27
DOS . . . . . . . . . . . . . . . . . . 3-5, 15, 16, 23
Error messages . . . . . . . . . . . . . . . 12, 21-23
Esc . . . . . . . . . . . . . . . . . . . . . . . 2, 20
Hard disk . . . . . . . . . . . . . . . . 1, 3, 16, 26
Heading . . . . . . . . . . . . . . . . . . . 2, 8, 11
Hidden . . . . . . . . . . . . . . . . . . . . 15, 16
Import . . . . . . . . . . . . . . . . . . . . . . 11
Indent . . . . . . . . . . . . . . 11, 15, 17, 18, 22
Initialization file . . . . . 2, 3, 5, 7, 8, 14, 21, 26
Latest date . . . . . . . . . . . . . . . . . 2, 9, 12
Levels . . . . . . . . . . . . . . 2, 4, 5, 9, 11, 12
License . . . . . . . . . . . . . . . . . . . . 26, 27
Lines . . . . . . . . . . . . . . . . . . . . . 14, 15
Memory . . . . . . . . . . . . . . . . . . . 3, 21, 23
National Language Support . . . . . . . . . . . . . 15
Number format . . . . . . . . . . . . 8, 12, 15-17, 22
Number of files . . . . . . . . . . . . . . . 2, 9, 16
Options . . . . . . . . . . 4, 5, 7, 8, 11, 14, 15, 22
Path . . . . . . . . . . . . . . . . 2, 3, 14, 22, 23
Pause . . . . . . . . . . . . . . . . . . . . 4, 12, 15
Percent . . . . . . . . . . . . . . . . . 9, 16-18, 22
Printing . . . . . . . . . . . . . . . 2, 4, 8, 12-15
DIRTOT Page 30
Question mark . . . . . . . . . . . . . . . . . . . 15
Quiet . . . . . . . . . . . . . . . . . . . . . . . 12
Quincunx Software . . . . . . . . . . . . . . 1, 25-28
Redirection . . . . . . . . . . . . . . . . . . . 4, 12
Registration . . . . . . . . . . . . 3, 12, 23, 25-27
Report format . . . . . . . . . . . 1, 2, 9, 17, 19, 22
Rows . . . . . . . . . . . . . . . . . . . . . 14, 15
Screen width . . . . . . . . . . . . . . . 14, 15, 17
Semicolon . . . . . . . . . . . . . . . . . . . . 5, 14
Shareware . . . . . . . . . . . . . . . . . . . . . 26
Sort . . . . . . . . . . . . . . . . . . 2, 12, 19, 22
Space allocated . . . . . . . . . . . 2, 9, 12, 16, 19
Space free . . . . . . . . . . . . . . . . . . 1, 2, 9
Space used . . . . . . . . . . . . 1, 2, 9, 12, 16, 19
Support . . . . . . . . . . . . . . . . . . . . . . 25
System . . . . . . . . . . . . . . . . . 2, 15, 19, 22
Thousands separator . . . . . . . . . . . . . . . 8, 15
Tree branches . . . . . . . . . . . . . 2, 8, 9, 11, 13
Unprintable characters . . . . . . . . . . . . . 2, 15
Volume ID . . . . . . . . . . . . . . . . . . 2, 15, 16
DIRTOT REGISTRATION FORM
Quincunx Software
8178 Aldgwen Rd.
Barneveld, WI 53507
Phone/FAX 608-924-5841
E-Mail: 75240.2051@compuserve.com
Name: _______________________________________________________
Company: _______________________________________________________
Address: _______________________________________________________
_______________________________________________________
City: ________________________ State: _____ Zip: __________
Country: _______________________________________________________
Phone: _______________________________________________________
Please register DIRTOT Version 1.6 in the above name.
_______ copies at $10.00 per copy. Amount enclosed _____________
Suggested enhancements:
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________