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 - disktotal() return total disk space on the specified drive http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 disktotal()         Return total disk space on the specified drive
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func ulong disktotal extern
   param value uint uDrive

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

 Return
   Total disk space on the specified drive.

 Description
   The disktotal() function returns the total disk space on the drive
   specified by the uDrive parameter.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_disktotal
   ? "Total disk space on current drive is", ;
      numcomma( istr( disktotal( curdrive() + 1 ) ) ), "bytes"
   endproc

   proc main
   Test_disktotal()
   endproc

See Also: diskfree() diskspace()

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