For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > March 2006 > Find disk space used by a file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Find disk space used by a file
J144

2006-03-16, 7:00 pm

Was wondering what's the easiest way to get the actual disk space used
by a file on smartphones or pocket pc? GetDiskFreeSpace() doesn't seem
to be available for me to calculate the cluster size. FindFirstFile()
only reports the file size, not the disk space used.

Thanks,
J
Brian Nantz

2006-03-17, 7:00 pm

Could you get the size of the disk and the size of the file and figure
it out?

J144 wrote:

> Was wondering what's the easiest way to get the actual disk space used
> by a file on smartphones or pocket pc? GetDiskFreeSpace() doesn't seem
> to be available for me to calculate the cluster size. FindFirstFile()
> only reports the file size, not the disk space used.
>
> Thanks,
> J

J144

2006-03-17, 7:00 pm

How?

Brian Nantz wrote:[color=darkred]
> Could you get the size of the disk and the size of the file and figure
> it out?
>
> J144 wrote:
>
J144

2006-03-21, 10:09 pm

Anyone???

J144 wrote:
> Was wondering what's the easiest way to get the actual disk space used
> by a file on smartphones or pocket pc? GetDiskFreeSpace() doesn't seem
> to be available for me to calculate the cluster size. FindFirstFile()
> only reports the file size, not the disk space used.
>
> Thanks,
> J

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com