home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT214.ZIP / SEBFU40.LZH / CHKSUM.DOC < prev    next >
Text File  |  1991-09-02  |  4KB  |  169 lines

  1.  
  2.                            C H K S U M     Ver. 4.0
  3.  
  4.  
  5.                     (C)1989,1990,1991  Scanlon Enterprises
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.        CHKSUM is a small utility, which can serve as a basic virus 
  13.        detection system. When first receiving a program use CHKSUM to 
  14.        get the start check sum. Then verify a match on a regular basis.
  15.  
  16.  
  17.  
  18.        Syntax : CHKSUM fname chksum /R
  19.  
  20.  
  21.        Where  : 'fname'   is the name of the file to check
  22.                 'chksum'  is a value to compare resulting sum with
  23.                 '/R'      allows redirection
  24.  
  25.  
  26.        There are no defaults, and a file must be specified.
  27.  
  28.        ERRORLEVELS: 0FF (255) Program Problem (call Author)
  29.                       3       File not found
  30.                       2       File name missing
  31.                       1       Check sum does NOT match
  32.                       0       OK
  33.  
  34.  
  35.  
  36.        EXAMPLES:
  37.  
  38.                CHKSUM fname
  39.  
  40.        Displays the check sum of file 'fname'.
  41.  
  42.                CHKSUM fname 1500
  43.  
  44.        Returns an errorcode of zero if the check sum for 'fname' is 
  45.        equal to 1500, if not errorlevel is 1.
  46.  
  47.                CHKSUM fname /R
  48.  
  49.        Displays the check sum of a file, but allows redirection to any 
  50.        device, such as the printer or file.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.       Page 1 of 3
  64.  
  65.        A use way to use this utility is to get the check sum of a file 
  66.        and log the check sum. Next make a batch which matches the logged 
  67.        checksum against the actual.
  68.  
  69.  
  70.        EXAMPLE:
  71.  
  72.        Get the check sum for COMMAND.COM
  73.  
  74.                CHKSUM COMMAND.COM
  75.  
  76.        Result is 2536, make a batch file using this value
  77.  
  78.                COPY CON CKCMDCOM.BAT
  79.  
  80.                CHKSUM COMMAND.COM 2546
  81.                IF ERRORLEVEL 1 GOTO FAIL
  82.                GOTO XIT
  83.                :FAIL
  84.                ECHO COMMAND.COM has been tampered with
  85.                :XIT
  86.                ^Z
  87.  
  88.        When run, the batch file will only display the message if 
  89.        COMMAND.COM does NOT match the check sum as entered.
  90.  
  91.        The above is only an example, your version of COMMAND.COM will be 
  92.        different.
  93.  
  94.        *** NOTE *** check sums are in HEX, thus a value of 25A0 would be 
  95.        a typical value returned. IE... Characters displayed will range 
  96.        from 0 thru 9 and A thru F !
  97.  
  98.  
  99.        For additional usage and information on using these utilities see 
  100.        the file SEBFU.DOC or BATUT.DOC.
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.       Page 2 of 3
  127.  
  128.                             C H K S U M    Ver. 4.0
  129.  
  130.  
  131.                     (C)1989,1990,1991  Scanlon Enterprises
  132.  
  133.  
  134.  
  135.                              O R D E R     F O R M
  136.  
  137.  
  138.  
  139.  
  140.        CHKSUM registration ..................................... $1.50
  141.  
  142.  
  143.  
  144.  
  145.        What you get :
  146.  
  147.        Unlimited usage of CHKSUM, and phone or write in support. You 
  148.        will also be placed on our mailing list for future updates and 
  149.        new products.
  150.  
  151.        We are offering this utility seperate from SEBFU as a favor to 
  152.        users who do NOT wish to use many of the SEBFU utilities.
  153.  
  154.        This utility is automatically registered to you when you register 
  155.        SEBFU as a product (see REG.DOC). Registering SEBFU as a product 
  156.        is a better bargin, as each utility will cost less than $ .25 
  157.        each.
  158.  
  159.  
  160.        Vendors:
  161.  
  162.        You may distribute CHKSUM seperately, provided this document is 
  163.        distributed as well. Any reasonable fee may be charged.
  164.  
  165.  
  166.        Send your order to : SCANLON ENTERPRISES
  167.                             38354 17TH ST E.
  168.                             PALMDALE, CA 93550
  169.