Re: Space on device



Dana Äetvrtak 5. februar 2004. 22:57, Harring Figueiredo je napisao/la:
Folks,

Does anyone know the system call that the Windows Explorer uses to find the
sapce available on a drive ?  (Drive here means C:\ or D:\ etc.).

What is the system call the df uses on linux/unixes(?) ?

                
ULARGE_INTEGER i1, i2, i3;
GetDiskFreeSpaceEx ("C:\\", &i1, &i2, &i3);

You will get free space in i2 and you can convert it to string with sprintf or 
similar.


Goran Rakic






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]