home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / DATABASE / HEADFIX.ZIP / HEADFIX.DOC < prev    next >
Text File  |  1990-02-15  |  4KB  |  134 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.         HEADFIX
  8.         December 1989
  9.         Erik A McBeth
  10.  
  11.                             DOCUMENTATION FOR HEADFIX
  12.  
  13.         What is it?
  14.              HEADFIX is a new incarnation of NEWHEAD.COM.  NEWHEAD.COM
  15.              was a utility designed to help repair damaged dBase file
  16.              headers by copying over a corrupt header with a fresh, new
  17.              one.  HEADFIX accomplishes this same task but adds
  18.              additional features such as dBase II compatibility and
  19.              estimation of record count.  HEADFIX CAN ONLY REPAIR DAMAGE
  20.              TO THE HEADER, DATA IS UNAFFECTED!!  IF YOUR DATA WAS
  21.              CORRUPT BEFORE HEADFIX IS RUN THEN IT WILL BE CORRUPT AFTER
  22.              HEADFIX IS RUN.
  23.              
  24.  
  25.         When would I use it?
  26.              Primarily in those cases when dBase returns the error
  27.              message "Not a dBase database" when you try to use your
  28.              database file.  This message is returned because dBase
  29.              checks the first few bytes of the file to double-check that
  30.              it is in fact using a dBase file and not a file from some
  31.              other product.  If it doesn't find the information it's
  32.              looking for it assumes you're trying to use some foreign
  33.              file.  When we replace the header with a new one we of
  34.              course set those special bytes back to the proper values
  35.              that dBase requires.
  36.              
  37.  
  38.         How do I use it?
  39.              What you'll need is a database file which has the exact
  40.              structure (fields, etc.) of your damaged file.  If you do
  41.              not have a copy of the header you might have to run a
  42.              utility called HEADXTRK first.  The header/structure of this
  43.              file will simply replace the header of the bad file. 
  44.              BECAUSE YOU ARE DEALING WITH CORRUPT FILES YOU SHOULD RUN
  45.              CHKDSK /F BEFORE RUNNING HEADFIX OR HEADXTRK.  The command
  46.              you would enter from DOS would look something like this:
  47.              
  48.              HEADFIX  badfile  goodfile  ?   
  49.              
  50.              'Badfile' and 'goodfile' would be the names of your database
  51.              files and the '?' tells HEADFIX to guess at the number of
  52.              records in 'badfile.dbf.'  You could also specify the number
  53.              of records instead of using the '?.'
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.                               HEADFIX ERROR MESSAGES
  74.  
  75.  
  76.         Unable to allocate memory for header record
  77.              There was not enough RAM in the system to allocate memory
  78.              for HEADFIX.  
  79.              
  80.         Unable to find file info on -> 
  81.              HEADFIX could not find the size of the bad file.
  82.              
  83.         Unable to open -> 
  84.              Couldn't find or open a file.  Make sure you give the full
  85.              path name and extension to the good and bad file.  Also make
  86.              sure that the output file is not READ ONLY.
  87.              
  88.         Unable to read header from -> 
  89.         Unable to read header length from -> 
  90.              The good file is either empty or not a dBase database. 
  91.  
  92.         Unable to seek BOF of -> 
  93.              Couldn't find the beginning of the good file.
  94.  
  95.         Unable to write header to -> 
  96.              Either the output file is read-only or some other read/write
  97.              error occurred.
  98.  
  99.         WARNING - Estimate of dBase II records may be set too high
  100.              Because dBase II saves files in multiples of 512 bytes,
  101.              HEADFIX's estimate of the number of records will probably be
  102.              high.
  103.              
  104.         WARNING - Number of records may be set too high
  105.              Your estimate of the number of records is greater than
  106.              HEADFIX's.
  107.  
  108.         WARNING - Number of records may be set too low
  109.              Your estimate of the number of records is smaller than
  110.              HEADFIX's.  It is better to guess high than to guess low.
  111.              
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.