Page 2 of 2

Re: hb_DiskSpace() Shows Incorrect Value

Posted: Fri Aug 06, 2010 3:25 pm
by esgici
Hello Sudip

Thanks to your interest and research effort, but;

my concern is difference between free space values, no file sizes; (and reason of two different file size is already explained above).

For diskette, these two values is equal, as shown in my last post in this topic; but unequal for hard-disk as shown in the my first post.

In other hand, "cluster" (or allocation unit) is different to track and sector concepts.

Regards

--

Esgici

Re: hb_DiskSpace() Shows Incorrect Value

Posted: Fri Aug 06, 2010 3:38 pm
by Rathinagiri
Esgici, my Windows Vista shows both the sizes correctly.

Re: hb_DiskSpace() Shows Incorrect Value

Posted: Fri Aug 06, 2010 4:10 pm
by esgici
rathinagiri wrote:Esgici, my Windows Vista shows both the sizes correctly.
Interesting :o

Perhaps M$ improved DOS box ;)

Do you like testing please hb_DiskSpace('C:', HB_DISK_FREE) as explained by Micheal in the first post of this topic.

Regards

--

Esgici

Re: hb_DiskSpace() Shows Incorrect Value

Posted: Fri Aug 06, 2010 4:13 pm
by sudip
Hello Esgici,

The difference may be due to Windows temporary files :idea:

Yes, I found - my computer (Win 7) shows diffent values of free bytes after some time interval using DIR command. I also found disk properties shows the same value (same to Rathi's finding).

So temporary files may be the reason.

What do you think :?:

Re: hb_DiskSpace() Shows Incorrect Value

Posted: Fri Aug 06, 2010 4:22 pm
by esgici
Hello Sudip

Probably you are right :)

While criticize I don't consider that Windows is a multi-tasking OS. So, may be some applications run at background and it's very possible that our disk(s) is under usage out of our eyes and knowledge :cry:

Regards

--

Esgici