I was wondering what method I could use to get a specific hdd's or partition's disk space information and store the free space on that partition into a variable
I was wondering what method I could use to get a specific hdd's or partition's disk space information and store the free space on that partition into a variable
I'd use a microscope, a pencil, and a handheld magnet. It's the only way that does not depend on the operating system.
In other words, post in the platform-specific board that fits your target platform.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
its a maxtor sata-155 using via
amd 64
windows xp
that the info you wanted?
You can use the GetDiskFreeSpaceEx function.
Thanks a lot
Btw, why was this moved to windows? It's a c++ question
> why was this moved to windows? It's a c++ question
Because the answer is specific to your OS.
Because the answer can be used by either C or C++
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.