Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - diskspace() return free space on the specified drive http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 diskspace()         Return free space on the specified drive
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func ulong diskspace extern
   param value uint uDrive

 Arguments
   uDrive is the drive number to retrieve information about.
   0 is drive A:, 1 is drive B:, etc.

 Return
   Number of free bytes on the specified drive.

 Description
   The diskfree() function returns the free disk space on the drive
   specified by uDrive. Note that the function is nearly identical to
   the diskfree() function except the drive numbering.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_diskspace
   ? "Free disk space on current drive is", ;
      numcomma( istr( diskspace( curdrive() ) ) ), "bytes"
   endproc

   proc main
   Test_diskspace()
   endproc

See Also: diskfree() disktotal()

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