Get the amount of space available on a disk
DISKSPACE( [<nDrive>] ) --> nDiskbytes
<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
<nDiskBytes> The number of bytes on the requested disk that match the requested type.
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.
? "You can use : " + hb_ntos( DiskSpace() ) + " bytes " Note: See tests\tstdspac.prg for another example
DOS, Win, OS2
Library is rtl Header is fileio.ch