Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>filecheck()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FILECHECK()
 Calculates/computes/determines a checksum for a file
------------------------------------------------------------------------------
 Syntax

     FILECHECK(<cFile>) --> nCheckSum

 Argument

     <cFile>  Designates which file name (with path, if required), to
     check.

 Returns

     FILECHECK() returns a checksum value for <cFile>.

 Description

     FILECHECK() determines if there have been changes or read errors in a
     file, and then takes note of data backup.  This also allows you to
     protect your hard disk from simple viruses (see Examples).

 Note

     .  You must specify the argument.  If it is omitted or an
        unavailable file is specified, FILECHECK() returns an error code of -
        1.  You may use a drive and access path, but no wildcards.

 Examples

     .  Check database for changes:

        IF FILECHECK("CUST.DBF") <> Old_ChkSum
           ? "Warning! Data back-up required."
        ENDIF

     .  Check COMMAND.COM for changes:

        IF FILECHECK("\COMMAND.COM") <> Cmd_ChkSum
           ? "COMMAND.COM has been changed! Caution, Virus!"
        ENDIF


See Also: DISKCHECK() SETSHARE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson