Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>diskcheck()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DISKCHECK()

Syntax:     DISKCHECK(<expC>)

Arguments:  <expC> denotes the drive designator (A,B,C etc.) to be
            tested.

Returns:    A numeric value.
            The function returns the value corresponding to a check sum
            for all the data on the disk selected with <expC>.  The function
            returns the value -1 if a read error found (-1).

Usage:      With CHECKDISK() it is possible to perform a simple test for
            changes on a diskette since it was last checked.  It is also
            possible to reject bad diskettes if an error is found (-1).

Notes:      The argument <expC> must be specified.  DISKCHECK()
            returns -1 as an error code if no floppy is in the drive or a
            non-existent drive is specified.  DISKCHECK() will take some
            time to run on hard disks.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   IF DISKCHECK("A") <> test_sum
               ? "You have inserted the wrong diskette."
            ENDIF



See Also: FILECHECK()

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