Search code examples
c++windowsdiskspace

Calculating free disk space


What is the best method for calculating free disk space using C++ only. My target platform is WinCE but most of the file operations are the same as normal Windows.


Solution

  • You mean usage as in how much space is left? then try GetDiskFreeSpace()
    Or do you mean, number of reads/writes/current files open, speed etc?