|
i was thinking of how to get the size of a disk, along with the free and used memory..
for example C:
so far I think, i'll need to do a recursive call to get all files in the root and its sub-roots, and calculate the size of all files.. ??
is this correct or is there an easier way?
for the recursive call, i found this, http://snippets.dzone.com/posts/show/1875, but i get an error..
any help ?
|
|
|
i got a better way for the recursive, and i calculate the total file size..
but i get a different total size then when i go to the dive , right click and click properties..
but then i when in the drive, highlighted all the files and folders, right click , then properties and is the same as my java program..
my current way does not calculate all the junk, in the sector of the drive,,,
ideas?
|
|
|
|
|
|
|
// |