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>volserial()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 VOLSERIAL()
 Determines the DOS disk serial number
------------------------------------------------------------------------------
 Syntax

     VOLSERIAL([<cDrive>]) --> nVolSerial

 Argument

     <cDrive>  Designates the drive whose volume serial number is
     queried.  The default is the current disk drive.

 Returns

     VOLSERIAL() returns the volume serial number of the DOS  disk, hard
     disk, or a 0, when you are not dealing with a DOS 4.0 or higher disk
     (see Notes).  When the current drive is unavailable, it returns -1.

 Description

     VOLUME SERIAL NUMBER
     Beginning with DOS version 4.0, every floppy or hard disk receives a
     volume serial number during formatting.  This is a 32-bit number is
     created by DOS using the date, clock time, and a counter.

 Notes

     .  Incompatibilities are possible.

     .  The function always returns a value from the disk parameter
        block of a floppy or hard disk.  Based on the Microsoft
        recommendation for DOS versions prior to 4.0, a value of 0 is
        returned.

 Example

     Query the volume serial number:

     ? VOLSERIAL()            // 0, when no DOS 4.x disk


See Also: OSVER()

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