DISKSPACE()
Get the amount of space available on a disk
- Syntax
-
- DISKSPACE( [<nDrive>] ) --> nDiskbytes
- Arguments
-
- <nDrive> The number of the drive you are requesting info on where 1 = A, 2 = B, etc. For 0 or no parameter, DiskSpace will operate on the current drive. The default is 0
- Returns
-
- <nDiskBytes> The number of bytes on the requested disk that match the requested type.
- Description
-
- By default, this function will return the number of bytes of free space on the current drive that is available to the user requesting the information.
- If information is requested on a disk that is not available, a runtime error 2018 will be raised.
Examples
? "You can use : " +Str( DiskSpace() ) + " bytes " +;
Note: See tests\tstdspac.prg for another example
- Status
- Ready
- Compliance
-
- This function is Ca-Clipper compliant
- Platforms
-
- Dos,Win32,OS/2
- Files
-
- Library is rtl Header is fileio.ch