[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Get the number of sectors per cluster on a drive.
------------------------------------------------------------------------------
Syntax
GT_SecPClu([<ncDrive>]) --> nSectorsPerCluster
Arguments:
<ncDrive> is an optional parameter that is the id of the drive
to be read. 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 a sector on the drive in bytes. If the drive is
invalid the return value will be -1.
Description:
GT_SecPClu() can be used to find the size in bytes of a sector
on a disk.
Examples:
// Each of the following print the size of a sector on drive C:
? GT_SecPClu("C:")
? GT_SecPClu("C")
? GT_SecPClu("Clipper") // First letter is used only.
? GT_SecPClu(3)
// The next two print the size of a sector on the current drive.
? GT_SecPClu(0)
? GT_SecPClu()
Source: SECTPCLU.C
Author: Dave Pearson
See Also: GT_CLUSTER() GT_CLUSFRE() GT_SECTSIZ()
Online resources provided by: http://www.ClipX.Net --- NG 2 HTML conversion by Dave Pearson