Re: [WIN] drive space used != total file space used; whynot?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Vern,

Ok, I understood the difference between what the size of an individual file
is and the amount of space taken up on a drive by that file due to unit
cluster size, and have accommodated that clumsily (still haven't found a way
to programmatically discern cluster size);  I was using the "properties"
comparison originally to see if my code was correctly handling cluster size
increments and summing individual directories size used correctly, so I
thought to do the same for the drive as a whole, but I'll probably take your
advice and ignore it.  Thanks.

Dan

----- Original Message -----
From: <vern at lvp.eastlink.ca>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, February 09, 2002 6:06 PM
Subject: Re: [WIN] drive space used != total file space used; whynot?


>
>
> ----- Original Message -----
> From: "Dan Moyer" <DANIELMOYER at prodigy.net>
> To: "EUforum" <EUforum at topica.com>
> Sent: Saturday, February 09, 2002 8:53 PM
> Subject: Re: [WIN] drive space used != total file space used; whynot?
>
>
> lesson that you cannot believe everything you see, another is, reality is
a
> matter of perspective....both apply to how Windows properties "sees" disk
> comsumption.  Windows XP, for instance, shows a 151 byte file located on
> drive c:\  in two ways when I view it in properties.  1). it says the file
> is 151bytes in size ( .151K)  2).  it also states that this one file is
> taking up 4096 bytes (4K) of drive space.  Is Windows insane and doesn't
> know what it is saying?  No, both are true becuase  the  cluster size is
4K
> and  the whole cluster is flagged as used.  Should for some reason Defrag
> (or some other wonderful optimization utility) not have been run for
awhile
> these unused portions of clusters add up and Windows Properties can wreak
> havoc on the senses.  My suggestion would be to ignore windows properties
> and go with a non-comparitive approach.
> >
> > Euman,
> >
> > Thanks, but that's not what I need.  I'm not looking for FREE space on a
> > drive, I'm trying to display the space USED by all directories on a
drive.
> > I'm getting that ok (verified afterward by using "properties" on each
> > directory & comparing), but when I SUM UP all the space used by all
> > directories (& also all files on the drive which are not in
directories),
> > and compare that to what I see when I use "properties" on the DRIVE
> itself,
> > the "properties" says there's more space used up on the drive than the
> > summing of the directories says.
> >
> > So I'm wondering what I'm missing.
> >
> > Anybody got any idea what might be going on?
> >
> > Dan
> >

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu