home *** CD-ROM | disk | FTP | other *** search
/ Bila Vrana / BILA_VRANA.iso / 005A / DIRTO603.ZIP / DIRTOTAL.DOC < prev    next >
Text File  |  1996-02-25  |  19KB  |  397 lines

  1. DIRTOTAL.DOC                         1                         Revised: 02/25/96
  2.  
  3. The DIRTOTAL.EXE program is another directory-listing program.   It  produces  a
  4. text file with the  results  of  your  search  and  is  primarily  designed  for
  5. inventory purposes.  It includes these features:
  6.  
  7.   * Can search an entire drive or part of a drive.
  8.   * Can search multiple drives.
  9.   * Can look for individual files or all files.
  10.   * Can select based on attributes, date, or size.
  11.   * Can extract information for archive files (ZIP, LZH, etc).
  12.   * Can look for duplicate file names.
  13.   * Can produce a couple of different report formats; see the "Syntax" section
  14.     for examples.
  15.   * Works on a CD-ROM and network drives.
  16.  
  17. DIRTOTAL goes through all directories on a given drive (or on  multiple  drives)
  18. and writes out the names and space used for all files on that drive.   You  will
  19. also see directory totals and such.  (You can suppress the individual file names
  20. listing if you want.)
  21.  
  22. Alternatively, you can have the utility restrict the search to just those  files
  23. within a given subdirectory and its child subdirectories.  For example,  if  you
  24. had a directory structure like this:
  25.  
  26.         +-- DOS
  27.         +-- TC -+-- KERMIT
  28.         |       +-- BANYAN
  29.         +-- 123
  30.  
  31. If you  pass  in  just  the  drive  designation,  you  will  get  files  in  all
  32. subdirectories.  If you  pass  in  "C:\TC",  you'll  get  all  files  in  C:\TC,
  33. C:\TC\KERMIT, and C:\TC\BANYAN.
  34.  
  35. DIRTOTAL then tries to total up the space used by subdirectory as  well  as  for
  36. the entire disk.  The routine  also  presents  subtotals  for  directories  with
  37. children.  For networked and CD-ROM discs, it will typically present  the  wrong
  38. results when it comes to total disk space and total free space but the file  and
  39. directory totals will all be correct.
  40.  
  41. DIRTOTAL creates an output file in the default directory on the C: drive  called
  42. "DRIVE#s.DIR" (where "s" is the letter of the drive you scanned) which  contains
  43. the file listings and total size reports.  If  you  restrict  the  output  to  a
  44. specific subdirectory and its children, the file name  created  will  be  called
  45. "DRIVE#sx.DIR", where "x" is the first  letter  of  the  restriction  ("DIRTOTAL
  46. C:\TC" would create a file called "DRIVE#CT.DIR").  If you ask for more than one
  47. drive at a time (e.g. "DIRTOTAL C: D: E:"), the file name will put the number of
  48. drives scanned in place of the drive letter (so "DIRTOTAL C: D:  E:  \TC"  would
  49. create a file called "DRIVE#3T.DIR").
  50.  
  51. The DIRTOTAL.EXE program was originally written in order to find  out  how  much
  52. space the various files took on a CD-ROM disc.  However, it works fine on  large
  53. disk drives and network drives.
  54.  
  55. Win95 notice:  As with most DOS-based utilities, this program doesn't understand
  56. the weird subdirectories that are possible under Windows 95.  The  program  will
  57. skip parts of your drive when you exceed subdirectory length limits.
  58.  
  59.  
  60. DIRTOTAL.DOC                         2                         Revised: 02/25/96
  61.  
  62. Note:  When examining  the  output  report,  you  may  find  some  weirdly-named
  63. eight-character file names (typically beginning with "A" or "B")  in  your  root
  64. directory.  Typically, these will show up if you run DIRTOTAL on your  C  drive.
  65. These files are temporary ISAM files created by the routine.  They  are  deleted
  66. once the program is run.
  67.  
  68.  
  69. Specifying parameters:
  70.  
  71. Parameters for this program can be set in the following ways.  The last  setting
  72. encountered always wins:
  73.   - Read from an *.INI file (see BRUCEINI.DOC file),
  74.   - Through the use of an environmental variable (SET DIRTOTAL=whatever), or
  75.   - From the command line (see "Syntax" below)
  76.  
  77.  
  78. Syntax:
  79.  
  80.     DIRTOTAL [ [ drive: ] ... [drive:][filespec] |
  81.         [ drive: ] ... [drive:]\path[\filespec] ]
  82.       [ /NORMAL | /WIDE | /THIN | /SPLIT ] [ /DUPS ] [ /CHILD ]
  83.       [ /NL ] [ /-HEADERS ] [ /-FOOTERS ] [ /CLUSTERS | /-CLUSTERS ]
  84.       [ /S { GT | GE | LT | LE | EQ | NE } value ]
  85.       [ /D { GT | GE | LT | LE | EQ | NE } mm/dd/yy ] [ /ATTR=attr ]
  86.       [ /Frptfile ] [ /Z | /-Z ] [ /Iinitfile | /-I ] [ /Ox | /O-x ]
  87.       [ /SUB1 | /-SUB1 ] [ /SUB2 | /-SUB2 ] [ /+DIR | /-DIR ] [ /n ]
  88.       [ /BEEP | /-BEEP ] [ /Tdrive: | /Tdrive:\path ] [ /Q ] [ /? ]
  89.  
  90. where:
  91.  
  92. "drive" is the letter of the drive you want to scan ("C", "D", "L", etc).  If no
  93. drive is specified, the routine presumes you want all files  from  your  default
  94. drive.  You can specify multiple drives if you want.
  95.  
  96. "filespec" restricts the listing to files that meet some file specification. The
  97. restriction can include wildcards.  For example, "DIRTOTAL C:\*.BAS".  Note that
  98. you can put a space between the drive and the path/filespec but not  within  the
  99. path/filespec (don't try "DIRTOTAL C:  \TC *.BAS" but  "DIRTOTAL  C:  \TC\*.BAS"
  100. and "DIRTOTAL C:\TC\*.BAS" are fine).  (One quirk:  If you specify  a  filespec,
  101. the program will not show parent subdirectory totals for  parent  subdirectories
  102. that are empty.)
  103.  
  104. "path" restricts the listing to a subdirectory and its children.
  105.  
  106.  
  107. DIRTOTAL.DOC                         3                         Revised: 02/25/96
  108.  
  109. "/NORMAL" is typically the default report format.  It produces a report which is
  110. 80-characters wide and has the complete file name listed on each line like this:
  111.  
  112. C:\ACD.IDX                                      09/26/93 00:34:50        575  a
  113. C:\AUTOEXEC.BAT                                 08/20/93 00:08:42        845  a
  114. C:\BOOT.CPS                                     05/06/93 18:56:28      1,024h
  115. C:\CHKLIST.CPS                                  05/20/93 22:23:06        135  a
  116. C:\CMOS.CPS                                     05/06/93 18:56:28         48
  117.  
  118. Note the last four characters show any special attributes set for the file:
  119.         a = archive bit set (the file hasn't been backed up yet)
  120.         h = hidden bit set
  121.         s = system file bit set
  122.         r = read-only file bit set
  123.  
  124. "/WIDE" produces a 126-character wide report with  all  of  the  information  in
  125. fixed columns.  This is fine for compressed printing or subsequent processing by
  126. some other program.  The field positions are as follows:
  127.  
  128.         cols  1- 65 path (including drive)
  129.              67- 78 filename (or ZIP name)
  130.              80- 91 ZIP member name (if any)
  131.              93-100 file creation date
  132.             102-109 file creation time
  133.             111-121 file size in bytes
  134.             123-126 attributes
  135.  
  136. This option invokes /Z although you can specify /-Z if you want to override  it.
  137. This option is primarily designed for people who  need  a  complete  catalog  of
  138. everything in a CD-ROM and programs like CATDISK choke if you exceed 4000  files
  139. per disc.
  140.  
  141. "/THIN" produces a smaller report.  The directory  name  is  printed  separately
  142. from the file name.  It automatically invokes the /CHILD option and  produces  a
  143. report similar to this:
  144.  
  145. C:\
  146.   ACD.IDX                   09/26/93 00:34:50         575   a
  147.   AUTOEXEC.BAT              08/20/93 00:08:42         845   a
  148.   BOOT.CPS                  05/06/93 18:56:28       1,024 h
  149.   CHKLIST.CPS               05/20/93 22:23:06         135   a
  150.  
  151. "/SPLIT" creates the results file with the filename in a fixed field within  the
  152. file.  If the subdirectory name doesn't fit, it's truncated.  The  /WIDE  option
  153. is better if your subdirectory names exceed 35 characters (if /Z is not used) or
  154. 22 characters (if /Z is used) unless you're particular about having 80-character
  155. or less reports.  A sample of the output with /Z:
  156.  
  157. D:\CLONE22\           PB22OBJ.LZH  ADDMATI.OBJ  05/01/93 11:14:58        124
  158. D:\CLONE22\           PB22OBJ.LZH  ADDMATL.OBJ  05/01/93 11:14:58        132
  159. D:\CLONE22\           PB22OBJ.LZH  ALLEXTME.OBJ 05/01/93 11:14:58        110
  160. D:\CLONE22\           PB22OBJ.LZH  ALTKEY.OBJ   05/01/93 11:11:54      1,282
  161.  
  162.  
  163. DIRTOTAL.DOC                         4                         Revised: 02/25/96
  164.  
  165. "/DUPS" produces a report which shows all files with the same file names on your
  166. disk.  By default, it produces a report that's a modifie