home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / chkpt10.zip / README.TXT < prev   
Text File  |  1996-04-09  |  6KB  |  121 lines

  1. The file chkpt10.zip contains a system utility by Luigi Mancinelli.
  2.  
  3.    CHKPTBL.C
  4.    CHKPTBL.COM
  5.  
  6.    README.TXT -- This file
  7.  
  8.    The C sources are written for Borland Turbo C 2.0 and could require even
  9. a lot of work to be compiled with different versions of C. They are plain C
  10. and maybe could be easily translated in assembler, because  they  don't use
  11. tipical C functions.
  12.  
  13. +++++++++++++++++++++++
  14. CHKPTBL.C - CHKPTBL.COM
  15.  This program compares the root sector  (that is partition  table for
  16.  hard disks and boot sector for floppy disks)  and, optionally (in the
  17.  case of an hard disk), the boot sector with data stored in a supplied
  18.  file.
  19.   The data files could be generated always with this same program.
  20.   A lot of options allow a full control of program,  but has to be re-
  21.  membered that such a program works at an intimate level with the com-
  22.  computers hardware and so its use must be very careful. No warranties
  23.  are given and the author could not be claimed responsible for damages
  24.  produced by the use of the program.
  25.   One possible use of this program is to save root and boot sector  of
  26.  the hard disk and check them every boot  (inserting a command in  the
  27.  autoexec.bat file) to reveal undesired changes (maybe a virus) and e-
  28.  ventually, with maximum care, restore the original data.
  29.  
  30.   syntax:
  31.   CHKPTBL [switches] <file-name>
  32.     <file-name> is the data file to compare root sector with.
  33.           If no extension is present extension .TBL is added, if a di-
  34.          rectory name is supplied (ending with '\')  the default  name
  35.          PARTTBL.TBL is used. If no name is supplied no check is made.
  36.  
  37.     switches:
  38.  
  39.     /H[1..Number of physical hard drive - default 1] selects the  phy-
  40.          sical hard drive subsequent commands refer to.
  41.           For default hard drive 1 is taken.
  42.     /F[1..Number of physical floppy drive - default 1]selects the phy-
  43.          sical floppy drive subsequent commands refer to.
  44.           If /F with no number is specified physical floppy 1 is taken
  45.     /S    Stop if differences are found between data stored in the fi-
  46.          le and actual root (boot) sector.
  47.     /C    If differences are found between data stored in the file and
  48.          actual root (boot) sector, correct them restoring the data in
  49.          file.
  50.     /B[+|-] Set the "Check boot sector too" option true(/B+) or  false
  51.          (/B-).  If this switch is not specified the option is  false,
  52.          if only /B is specified the option is set to true.
  53.     /W[+]<file-name> Store drive-data to <file-name> (ext. and name as
  54.          for reference file).   If the file already exists, if  /W+ is
  55.          specified the file is overwritten, otherwise nothing is done.
  56.           If the "Check boot sector too" option  is actually true  and
  57.          the actually selected drive is an hard whose partition number
  58.          one is a dos bootable partition even the boot sector is saved
  59.          (for a total of 1024 bytes),otherwise only the root sector is
  60.          written to the file.
  61.  
  62.   example:
  63.   CHKPTBL /Wfile1 /B /H2 /Wfile2/F/Wfile3 /H/Wfile4 C:\DOS\
  64.     Actions:
  65.     The root sector of hard drive 1 is written to file1, the root sec-
  66.    tor of hard drive 2 (which is generally a not dos-bootable disk) is
  67.    written to file2, the root sector (which is the boot sector) of the
  68.    floppy drive 1 (usually a:) is written to file3 and the root sector
  69.    and the first partition's boot sector (if it's a DOS-bootable  par-
  70.    tition) of the hard drive 1 are written to file4 and both are  com-
  71.    pared with the file C:\DOS\PARTTBL.TBL.
  72.  
  73.   (c) 1996 by Luigi Mancinelli
  74.   manci@alpha.science.unitn.it
  75.  
  76.   Note: If the program has to be recompiled, the tiny model has  to be
  77.  used and the resulting .exe has to be converted in .com (with the DOS
  78.  utility EXE2BIN for example) or the program doesn't work.
  79. ===========================================================================
  80.  
  81. LICENCE
  82. -------
  83.    The files here included can be freely distributed, provided
  84. that they're distributed together, without stripping copyright
  85. informations and without any change (I'd like to get blame for
  86. my own errors and credit only where it is due - as Chris  Dun-
  87. ford says).  Commercial use couldn't be done  without  contact
  88. the author.
  89.  
  90.  
  91.                             NO WARRANTY
  92.  
  93.        BECAUSE THE PROGRAM IS LICENSED  FREE OF CHARGE, THERE IS NO WARRANTY
  94. FOR THE PROGRAM, TO THE EXTENT  PERMITTED  BY  APPLICABLE LAW.  EXCEPT  WHEN
  95. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDER PROVIDE THE PROGRAM "AS IS"
  96. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED  OR  IMPLIED,  INCLUDING, BUT
  97. NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS  FOR A
  98. PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
  99. PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST
  100. OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  101.  
  102.        IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  103. WILL THE COPYRIGHT HOLDER, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENE-
  104. RAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES  ARISING OUT OF THE USE OR
  105. INABILITY  TO USE  THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
  106. DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU  OR  THIRD PARTIES
  107. OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF THE
  108. HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  109.  
  110.  
  111.  
  112. (c) 1996 by Luigi Mancinelli
  113. E-Mail: manci@alpha.science.unitn.it
  114. Post :
  115.   Luigi Mancinelli
  116.   c/o Laboratori Didattici
  117.   Facoltà di Scienze
  118.   Università degli Studi di Trento
  119.   38050 POVO-TRENTO (TN)
  120.   ITALY
  121.