Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>return the size of a disk in bytes.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Return the size of a disk in bytes.
------------------------------------------------------------------------------

 Syntax

        GT_DiskSize([<ncDrive>]) --> nDiskSize

 Arguments:

      <ncDrive> is an optional parameter that is the id of the drive
      to be checked. This paramater can be either a character value
      who's first character is taken as the drive letter or a numeric
      value where 0 = Default, 1 = A:, 2 = B:, etc... If no parameter
      is passed the default drive is used.

 Returns:

      The size of the disk in bytes.

 Description:

      GT_DiskSize() can be used the find the size of a disk in bytes.

 Examples:

      // Each of the following print the size of drive C:

      ? GT_DiskSize("C:")
      ? GT_DiskSize("C")
      ? GT_DiskSize("Clipper")         // First letter is used only.
      ? GT_DiskSize(3)

      // The next two print the size of the current drive.

      ? GT_DiskSize(0)
      ? GT_DiskSize()

 Source: DISKSIZE.PRG

 Author:  Dave Pearson

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