home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
DISK_UTL
/
DIRTOT10.ZIP
/
DIRTOT.DOC
next >
Wrap
Text File
|
1992-05-14
|
27KB
|
650 lines
/---------------------------------------------------------------\
| |
| DIRTOT - Directory Totals |
| Version 1.0 05-14-92 |
| Copyright (C) Quincunx Software 1992 |
| All rights reserved |
| |
\---------------------------------------------------------------/
DIRTOT 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 compiler 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 3 display formats and 11 customization options. Its
listing can be displayed on the screen, printed, or stored in a
file.
Suppose you have the following subdirectory structure:
\C600
\C600\BIN
\C600\BINB
\C600\HELP
\C600\INCLUDE
\C600\INCLUDE\SYS
\C600\INIT
\C600\LIB
\C600\SOURCE
\C600\SOURCE\DOC
\C600\SOURCE\STARTUP
\C600\SOURCE\STARTUP\DOS
With any of several utilities you can find out how much space the
files in EACH subdirectory use. (It may take 12 separate
commands to do so):
\C600 0
\C600\BIN 2141260
\C600\BINB 562718
\C600\HELP 2054723
\C600\INCLUDE 119121
\C600\INCLUDE\SYS 4327
\C600\INIT 9607
\C600\LIB 1234894
\C600\SOURCE 0
\C600\SOURCE\DOC 8819
\C600\SOURCE\STARTUP 0
\C600\SOURCE\STARTUP\DOS 35830
Then with a calculator you can add them up to find that 6171299
bytes are used by the compiler and its associated files. With
DIRTOT you give one command:
dirtot \c600
COMPUADD325 5:19p 04-19-92 13,172,736 Free
C:\C600 3 Levels
Directory Total Used Dirs Files
------------------ ----------- ----------- ----- ------
C600 6,171,299 0 11 94
├─BIN 2,141,260 2,141,260 19
├─BINB 562,718 562,718 7
├─HELP 2,054,723 2,054,723 10
├─INCLUDE 123,448 119,121 1 35
│ └─SYS 4,327 4,327 5
├─INIT 9,607 9,607 3
├─LIB 1,234,894 1,234,894 15
└─SOURCE 44,649 0 3 5
├─DOC 8,819 8,819 2
└─STARTUP 35,830 0 1 3
└─DOS 35,830 35,830 3
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, SOURCE is at level 1,
STARTUP is at level 2, and DOS is at level 3.)
The columns show the Directory names in a tree format, 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, and the total number of
Files in each subdirectory plus all levels below it.
In the first line of the Total column you see that directory C600
and all its subdirectories used 6,171,299 bytes. Directory C600
by itself used no space at all. There are 11 subdirectories
below this point, and a total of 94 files in the entire
structure.
/---------------------------------------------------------------\
| |
| INSTALLATION |
| |
\---------------------------------------------------------------/
DIRTOT consists of a single file, DIRTOT.EXE. 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.
DIRTOT requires any PC running DOS 2.0 or later. It has no
special memory or display requirements.
/---------------------------------------------------------------\
| |
| OPERATION |
| |
\---------------------------------------------------------------/
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:
DIRTOT has numerous options to customize its output. (See the
next 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 size, of all subdirectories on drive D:
dirtot /l1 /i4 /k /s d:
Or use the equivalent command:
dirtot /l1i4ks d:
/---------------------------------------------------------------\
| |
| 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. Instead, it prints a heading
every 58 lines.
/---------------------------------------------------------------\
| |
| COMMAND LINE OPTIONS |
| |
\---------------------------------------------------------------/
Command line options may be preceded by a dash (-) or a
slash (/), may be entered in upper or lower case, and several
options may be combined. Options may appear anywhere on the
command line.
-a use standard ASCII characters
This option substitutes the plain characters '+', '-', '|',
and '\' for the extended graphic characters in the tree
list. 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
-b Brief output
This option produces a report of just the subdirectories and
total space used - no headings, no directory or file counts.
The Brief option overrides the Percent option.
C600 6,171,297
├─BIN 2,141,260
├─BINB 562,718
├─HELP 2,054,723
├─INCLUDE 123,448
│ └─SYS 4,327
├─INIT 9,605
├─LIB 1,234,894
└─SOURCE 44,649
├─DOC 8,819
└─STARTUP 35,830
└─DOS 35,830
-c no Commas
This option causes numbers to be displayed without thousands
separators.
-h show Help info
This displays a help screen listing the options. Same as -?
-i## columns to Indent each level
Put a number from 0 to 12 in place of the "##". This option
controls the appearance of the tree listing. If you do not
use this option the listing is indented 2 spaces. Example:
dirtot -i4 \c600
C600
├───BIN
├───BINB
├───HELP
├───INCLUDE
│ └───SYS
├───INIT
├───LIB
└───SOURCE
├───DOC
└───STARTUP
└───DOS
-k show numbers in Kilobytes
This option causes the Free space, Total used, and space
Used to be displayed in kilobytes (1024 bytes) rounded to
the nearest kilobyte. For example 119,121 shows as 116K.
(See also -m)
-l## maximum Levels to show
Put a number from 0 to 32 in place of the "##". This option
limits the number of directory tree levels displayed. Note
that all lower levels are scanned and counted regardless of
this setting. If you do not use this option up to 32 levels
are shown.
Zero shows only one line about the topmost level. One shows
only the first level subdirectories, two shows two levels of
subdirectories, etc.
-m show numbers in Megabytes
This option causes the Free space, Total used, and space
Used to be displayed in megabytes (1,048,576 bytes) rounded
to the nearest one-tenth megabyte. For example 119,121
shows as .1M. (See also -k)
-n No pause each screen full
Normally, when the listing appears on the screen, DIRTOT
pauses after each screen for you to press a key. This
option causes the output to scroll continuously. (If the
output is redirected to the printer or a file DIRTOT does
not pause regardless of this option.)
-p show Percent of parent level
This option produces a listing showing Total used, percent
of total used, total Files, and percent of total files.
Percents are OF THE PREVIOUS LEVEL and are rounded to the
nearest percent.
COMPUADD325 0:42a 04-22-92 10,485,760 Free
C:\C600 3 Levels
Directory Total % Files %
------------------ ----------- --- ------ ---
C600 6,171,258 94
├─BIN 2,141,260 35 19 20
├─BINB 562,718 9 7 7
├─HELP 2,054,723 33 10 11
├─INCLUDE 123,448 2 35 37
│ └─SYS 4,327 4 5 14
├─INIT 9,566 0 3 3
├─LIB 1,234,894 20 15 16
└─SOURCE 44,649 1 5 5
├─DOC 8,819 20 2 40
└─STARTUP 35,830 80 3 60
└─DOS 35,830 100 3 100
-q Quiet mode
This option turns off the "Totaling..." display, the
copyright notice, and the beep in error messages.
-s sort by Size descending
Normally each level of subdirectories is sorted by name.
This option causes the subdirectories occupying the most
space to appear at the top of the list.
-t no Tree branches
This option turns off the connecting lines in the tree
display:
C600
BIN
BINB
HELP
INCLUDE
SYS
INIT
LIB
SOURCE
DOC
STARTUP
DOS
-w Wide printer (132 columns)
When printing a report DIRTOT assumes your printer is 80
columns wide. This option lets it know that the printer can
handle wider output. DIRTOT does not send any printer
control codes. This option makes no difference unless you
have more than 13 levels of subdirectories.
-? show Help info
This displays a help screen listing the options. Same as -h
/---------------------------------------------------------------\
| |
| OTHER FEATURES |
| |
\---------------------------------------------------------------/
DIRTOT indicates subdirectories with Hidden or System attributes
by displaying their names in lower case.
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
and you have more than 13 levels of subdirectories. If you use
DIRTOT in 40 column mode the brief display format will be used
automatically - its the only one that fits.
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.
/---------------------------------------------------------------\
| |
| 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". DIRTOT counts
the actual space each file uses, as reported in a directory
listing.
CHKDSK may also report one more file, because it counts 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?
0K means the actual value is between 1 and 511 inclusive.
.0M means the actual value is between 1 and 52,428
inclusive. 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?
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
-------------------------------------- -----------
A 1,052,672
└─B 1,052,672
└─C 1,052,672
└─D 1,052,672
└─E 1,052,672
└─F 1,052,672
└─G 1,052,672
└─H 1,052,672
└─I 1,052,672
└─J 1,052,672
└─K 1,052,672
└─L 1,052,672
└─M 1,052,672
└─N 1,052,672
14> O 1,052,672
15> P 1,052,672
16> Q 1,052,672
17> R 1,052,672
18> SSSSSSSS.SSS 1,052,672
19> T 0
Exactly when this happens depends on the settings for indent
and number format. The default settings trip at level 14,
but if you set indent to 1 and number format to Kilobytes
(/i1k) all 32 levels that DOS allows will be shown in tree
format.
/---------------------------------------------------------------\
| |
| ERROR MESSAGES |
| |
\---------------------------------------------------------------/
*** Path not found
A subdirectory you entered on the command line does not
exist. Maybe you misspelled it. 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 a directory between the time that DIRTOT first
detected it and then went back to scan it.
*** Internal storage full, complete path not scanned
The memory that DIRTOT allocated to store subdirectories is
full. It will report what it has, but it did not cover your
entire disk.
DIRTOT has room to store over 1500 subdirectories, so to get
this message you either must have a VERY large disk or are
running DIRTOT with less than 85K of memory available. If
you actually have more than 1500 subdirectories, let
Quincunx Software know so we can consider producing an
expanded version.
*** Error allocating memory
An internal error occurred. Report this to Quincunx
Software.
/---------------------------------------------------------------\
| |
| TIPS AND TECHNIQUES |
| |
\---------------------------------------------------------------/
To produce the briefest possible listing of the space in use on
several drives use the Brief, max Level 0, and Megabyte options:
dirtot /blm c: d: e:
C:\ 127.7M
D:\ 114.1M
E:\ 23.4M
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
To get a good picture of the space used by the various major
programs on your system, use the Level 1 and Percent options:
dirtot /l1p c:\
If you prefer to see the largest first, include the Sort by size
option:
dirtot /l1ps c:\
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You can cancel DIRTOT's output at any time by pressing Ctrl+C or
Ctrl+Break.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you find a set of options that you want to use frequently,
create a one line batch file. For example:
copy con dt.bat
dirtot /l1 /i4 /k /p /q %1
^Z
Then whenever you type
dt
you will get DIRTOT with your favorite options. (The ^Z is
produced by pressing Ctrl+Z and then Enter.)
/---------------------------------------------------------------\
| |
| 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. All copies must be unaltered
and include the files DIRTOT.EXE and DIRTOT.DOC. The author,
Quincunx Software, retains all other rights to the program.
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 $9.00
(Nine U.S. Dollars). Send payment in check or money order to:
Quincunx Software
8178 Allgwen Rd.
Barneveld, WI 53507
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. 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 REGISTRATION FORM
Quincunx Software
8178 Allgwen Rd.
Barneveld, WI 53507
Name: _______________________________________________________
Company: _______________________________________________________
Address: _______________________________________________________
_______________________________________________________
City: ________________________ State: _____ Zip: __________
Country: _______________________________________________________
Phone: _______________________________________________________
Please register DIRTOT Version 1.0 in the above name.
________ copies at $9.00 per copy. Amount enclosed _____________
Suggested enhancements:
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Thank you for your support.