How do i find the capacity of a harddrive? is there some GetHardDriveCap function? I just need to find out how big the hard drive is, and how much space is being taken up.
Printable View
How do i find the capacity of a harddrive? is there some GetHardDriveCap function? I just need to find out how big the hard drive is, and how much space is being taken up.
Right click your C drive, properties. :DQuote:
I just need to find out how big the hard drive is, and how much space is being taken up.
OS dependent. Standard C++ cannot do it. I'm guessing you're on Windows, so this really ought to be moved to the Windows board.
Hi try using this header file and the structure...
May be helpful...
#include <sys/vfs.h> // ??? [statfs(), etc.]
int main(void)
..
// variables
struct statfs fs;
.
.
.
..