Hi

How to get local disk ( c:\ or d:\ ) used space in windows.
Any API ?

To the OP: in case you're copying the whole thing (look at Sky Diploma's post, code mentioned in the link), then don't forget to change void main() to int main() :P

And:

#include <iostream.h>
#include <iomanip.h>
#include <string.h>

to:

#include <iostream>
#include <iomanip>
#include <cstring>

:P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.