Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

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
      Library is rtl  Header is fileio.ch

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