home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BBS_UTIL / DDOV10.ZIP / DDOV.DOC < prev    next >
Text File  |  1994-01-09  |  8KB  |  191 lines

  1. DDOV version 1.0 - An RBBS Utility
  2. by Ken Goosens.  Jan 8, 1994
  3.  
  4. Contents
  5.     0.0  Licensing
  6.     1.0  What is DDOV?
  7.     2.0  What's New?
  8.     3.0  The Theory Behind DDOV
  9.     4.0  How to Set up DDOV
  10.     5.0  Recompiling
  11.  
  12.  
  13.                       0.0  Licensing
  14.  
  15. The author does not ask for any donation for use of DDOV.
  16. The rights to the code are exclusively retained by the author.
  17.  
  18. Everyone is free to use DDOV without any cost.   Everyone is
  19. free to distribute DDOV without cost, provided they charge nothing
  20. for DDOV.  You cannot distribute DDOV with any shareware or
  21. commercial product without permission of the author.   Modified
  22. versions of DDOV can be distributed only with permission of the
  23. author.  Enhancements or fixes to the code are welcome.   Anyone
  24. is free to write (and charge for) an improvement over DDOV in
  25. a language other than BASIC.  For support, the author can be reached
  26. via the RBBS conference on RBBS-Net or on his Bulletin Board at
  27. 703-978-6360.
  28.  
  29.  
  30.                 1.0  What is DDOV?
  31.  
  32. DDOV is a utility to detect duplicate files and old versions of files
  33. and give you the opportunity to delete them.   It is meant to be helpful
  34. in making room on a hard disk for Bulletin Board Systems.   It uses
  35. the output file FIDX.DEF in RBBS-PC, but this file can easily be created
  36. on any BBS (using MAKEFIDX.EXE distributed with RBBS-PC).  DDOV will
  37. perform the following kinds of functions:
  38.  
  39. o   detect duplicate files, based on the fact that they have the
  40.     same name and size.   DDOV does not look in any way at the
  41.     contents of a file and so will NOT detect duplicates with different
  42.     sames, say two GIF files of the same picture.
  43.  
  44. o   detect different versions of the same file.  This inference is
  45.     necessarily uncertain.  DDOV looks for a common stem in the front
  46.     of the name, followed by a numeric version.
  47.  
  48. o   entire drives can be declared off limits of file deletion.  You
  49.     will want to use this if you have CD-Roms.  DDOV will recover when
  50.     the file cannot be omitted but this declaration will save you
  51.     considerable time and processing.   DDOV will not even report
  52.     dups and old versions of both are on drives that where files cannot
  53.     be omitted.
  54.  
  55. DDOV is especially useful when a BBS expands by adding masses of files,
  56. say from a CD-Rom or a tape of software.   The SysOp then faces the
  57. problem of culling out duplicates and older versions.
  58.  
  59. DDOV should be distributed as DDOV10.ZIP and consists
  60. of the following files:
  61.  
  62. DDOV.EXE    executable program
  63. DDOV.BAS    source code
  64. DDOV.CFG    sample configuration set up for runs
  65. DDOV.IN     list of files to include in DDOV.LIB
  66. DDOV.INF    information file for modules for DDOV.LIB
  67. DDOV.DOC    documentation for DDOV
  68. LDDOV.BAT   batch file for creating DDOV.LIB needed to recompile
  69.  
  70.                    2.0  What's New
  71.  
  72. Nothing.  This is the first release.
  73.  
  74.                    3.0  The Theory Behind DDOV
  75.  
  76. The theory on duplicate files is simple:  they have the same
  77. file name and the same file size.   The date on the file is a
  78. less reliable indicator and is not used.  If the files have the
  79. same name but a different size, the version routine will flag
  80. them as possible different versions.  A better way to detect
  81. duplicates is by calculating a CRC for each file, but this takes
  82. a great deal of time.
  83.  
  84. DDOV does its real work is detecting different versions of
  85. files.   In general, versions have
  86.  
  87. o    A front part of the file name prefix that is the same
  88.  
  89. o    either the same extension, or are one of an equivalent
  90.      class of extensions, the equivalents being ZIP, ARC, ARJ,
  91.      PAK, and LZH in the IBM PC world.
  92.  
  93. These criteria are not certain.  A file can be named so that
  94. the front part varies between versions and the end of the prefix
  95. stays constant.   Files with similar names can be unrelated.
  96.  
  97. But you have to be able to distinguish versions from a series of
  98. different files.  A series of files usually have either
  99.  
  100. o    a particular extension (GIF files are a good example), or
  101.  
  102. o    the same file date.
  103.  
  104. None of these criteria are certain.  When a series of different files
  105. are put out over time, the version detector will wrongly treat them as
  106. later versions.
  107.  
  108.                    4.0  How to Set up DDOV
  109.  
  110. DDOV requires a file and location index to generated prior to running
  111. DDOV.  Many RBBS-PC SysOps will already be using the fast file search
  112. which is based on such files.  However, since you are looking for
  113. duplicates and old versions, you will probably want to include your
  114. upload directory in the list of files, so you probably will want to
  115. make a special run of MAKEFIDX for DDOV that includes it.   Be sure to
  116. sort this file first by file name.
  117.  
  118. DDOV operates differently from most PC programs in the program
  119. does not offer the user a simple menu of choices.  DDOV is designed
  120. instead to get its setup from a file, do its work to detect duplicates
  121. and old versions, and give the operator the opportunity to delete one
  122. or both of the files.
  123.  
  124. Use your favorite full screen editor to set up a configuration for
  125. your application.  You can name your configuration anything you want
  126. and invoke DDOV using configuration XYZ.CFG by typing
  127.  
  128.                      DDOV XYZ.CFG
  129.  
  130. A general configuration file is provided as
  131. DDOV.CFG.
  132.  
  133.                       5.0  How DDOV Operates
  134.  
  135. DDOV will read in your location index file, then process the file list,
  136. looking for duplicates and old versions.  At the top of the screen a
  137. running list of the current file being read and the number processed is
  138. kept.   DDOV will never automatically delete any files.  When it
  139. encounters a potential duplicate or old version, it will clear the screen,
  140. and print the file name, location, size, and date of each on the screen.
  141. It will note if the location is protected from deletion by "no kill ->",
  142. which file is bigger by "larger ->", and which is newer by "newer ->".
  143. These are meant to help you in analyzing which files to delete.   If,
  144. however, the smaller and older file is on a drive that cannot be deleted,
  145. DDOV will not even ask you whether you want to kill any but simply
  146. continue processing.  When DDOV pauses for instructions about what files
  147. to omit, your choices are
  148.  
  149. A  - omit file labelled A - which is the top entry.
  150.  
  151. B  - omit file labelled B - which is the 2nd and bottom entry
  152.  
  153. AB - omit both files displayed
  154.  
  155. Q  - cease processing. Terminate the program
  156.  
  157. J  - jump to an entry in the file list.  Very fast way to leap
  158.      over files to start processing at a later point.
  159.  
  160. If you ask DDOV to delete a drive marked as not supporting deletion,
  161. DDOV will simply wipe away your answer and reprompt for another answer.
  162.  
  163. DDOV will append the location/name of all files omitted to a log file,
  164. whose default name is KILLED.FIL.   DDOV will never delete this file, so
  165. if you want to start clean, you have to omit it.   This log file is useful
  166. for keeping track of what files you may want to remove from your
  167. DIR listings, but DDOV will not remove any file entries from your RBBS
  168. directory listings - only from the physical DOS drives.
  169.  
  170.                       5.0  Recompiling
  171.  
  172. DDOV is written in Basic for MicroSoft's Professional Basic 7.1,
  173. and uses Tom Hanlin's library PBCLONE.
  174.  
  175. First get a copy of PBCLON...ZIP.  This program is shareware so be
  176. sure to register it.   You must extract the obj files needed.
  177. The Hanlin shareware product LibWiz has a utility called Unlib
  178. that makes this job easy.
  179.  
  180. Then, to make the library, just say
  181.  
  182. LDDOV
  183.  
  184. to invoke the batch file LDDOV.BAT enclosed.  This uses DDOV.IN.
  185.  
  186. For Professional Basic 7.1, the commands to recompile are:
  187.  
  188. bc DDOV,DDOV /o/x;
  189. link DDOV,,,DOV;
  190.  
  191.