Ever wondered how many bytes a large program with many subdirectories
consumed of your harddisk?
Or better, how many bytes _all_ .exe files consumed?

Yes ... then read on.
No  ... also read on because dirinfo can do more.

The Program

   Dirinfo without any parameters will list all subdirectories in
the current directory and give the number of bytes each subdirectory
(including its subdirectories) consumes.
So you will get something like (on my drive, with current directory C:\MISC):
--------------------------------------------------------------------
Directory info v1.1 October 1994 by Marc Lensink
      bytes/      total    files/ total   directory
     24,094/  7,645,460        5/    80   C:\MISC
          0/  3,281,081        0/    46   C:\MISC\AUDIO
  2,495,965/  2,495,965        4/     4   C:\MISC\DEMO
     29,219/     29,219        4/     4   C:\MISC\DOC
    134,282/    134,282       11/    11   C:\MISC\TXT
  1,263,263/  1,680,819        2/    10   C:\MISC\VIDEO
--------------------------------------------------------------------
This means that there are 5 files in the subdirectory C:\MISC which consume
24094 bytes, the entire branch contains 80 files which altogether consume
7645460 bytes.

Although this basically covers it, dirinfo can do more.

The Options
   Usage: dirinfo [options] [directory\filespec]

   directory  - any directory on your harddisk, 
                may include a driveletter, e.g. C:\MISC
   filespec   - file specification, may include wildcards

Executing 'dirinfo c:\notexist' will give information about
the directory c:\notexist if that directory exists, if it does not exist,
the program will list all directories which contain the file 'notexist.'!
Executing something like 'dirinfo c:\util\*.exe' would indicate a 
considerably higher intelligence.

[options] can be any combination of the following:
   /r  recurse subdirectories - lists all subdirectories
   /p  pauses after each screenful of information
   /c  compact - doesn't show comma's in the number fields (bytes/files)
   /l  uses lowercase for the directory name
   /e  skips empty directories, directories that have a zero in all
       four fields
   /f  shows the free diskspace on the drive
   /o  sort output
       followed by
     n    sort on name of directory
     d    sort on directory depth
     b    sort on number of bytes
     f    sort on number of files
     bt   sort on total number of bytes
     ft   sort on total number of files
       all six sort options can be followed by a '-' to reverse sort order.

All options should be separated by a space, otherwise only the first option
will be recognized.
Instead of '/' you can also use '-' to indicate the beginning of an option.
Default settings are 'dirinfo /on *.*'

Example: 'dirinfo \misc /r /ob' will give information about all directories
in the subdirectory \misc on the current drive, output sorted on the number
of bytes in each directory. On my drive this gives:
--------------------------------------------------------------------
Directory info v1.1 October 1994 by Marc Lensink
      bytes/      total    files/ total   directory
          0/  3,281,081        0/    46   C:\MISC\AUDIO
     24,094/  7,645,460        5/    80   C:\MISC
     29,219/     29,219        4/     4   C:\MISC\DOC
    134,282/    134,282       11/    11   C:\MISC\TXT
    371,640/    371,640       24/    24   C:\MISC\AUDIO\MID
    417,556/    417,556        8/     8   C:\MISC\VIDEO\JPG
  1,263,263/  1,680,819        2/    10   C:\MISC\VIDEO
  2,495,965/  2,495,965        4/     4   C:\MISC\DEMO
  2,909,441/  2,909,441       22/    22   C:\MISC\AUDIO\MOD
--------------------------------------------------------------------

Of course this is just what you've always needed.

What does it cost.

   The program is FREEWARE.
   This means that you don't have to pay anything for it.
You can distribute the program further (please do!) as long as you leave
these two files intact
   DIRINFO .EXE         17232 bytes
   README  .TXT          5375 bytes

   I would appreciate a postcard of the city (town, village) where
you live (or a simple e-mail).

Disclaimer

   Of course I cannot hold myself responsible for whatever disaster
the use of this program may cause (although I can't think of any).

The author

Send any postcard to:
   Marc Lensink
   Kooisingel 16
   9753 EX HAREN (GR)
   The Netherlands

All e-mail:
   lensink@chem.rug.nl

For the latest version of the program, check my www-page:
   http://rugmd0.chem.rug.nl/~lensink/lensink.html

Revision report:
v1.0D 11-1993     First release for DOS
v1.01 05-1994     Bugfix: At program exit, the program chdired to default on
      C:, fixed, now chdirs to directory from where program was called.
v1.1  11-1994     Added:
                     Sorting
                     Comma's in number formatting
                     Depth of subdirs
                     Possibility of recursing down
                     Cmdline syntax in help
                     Filespec (e.g. '*.txt') possible
                     Skipping of empty directories
                     Possibility of showing free disk space
                  Bugfix:
                     Error message if dir doesn't exist

The End
