main logo
Subject: Re: Determining size on disk?
Author: "Ted Roche"
Posted: 2007/09/29 07:17:23
 
View Entire Thread
New Search


On 9/29/07, Steven Holt <sh (at) stockpix .D.OT com> wrote:
> Thanks, those cluster roundups sound like they are probably more effort
> than they are worth.

Not really. If sector size is 2048 bytes, the amount of space taken by
a file is:

#DEFINE SectorSize 2048
lnSizeonDisk = (INT(lnSizeofFile/SectorSize) + 1) * SectorSize



--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com



 
©2007 Ted Roche
<-- Prior Message New Search Next Message -->