hb_DiskSpace() Shows Incorrect Value

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: hb_DiskSpace() Shows Incorrect Value

Post 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
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: hb_DiskSpace() Shows Incorrect Value

Post by Rathinagiri »

Esgici, my Windows Vista shows both the sizes correctly.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: hb_DiskSpace() Shows Incorrect Value

Post 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
Viva INTERNATIONAL HMG :D
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: hb_DiskSpace() Shows Incorrect Value

Post 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 :?:
With best regards,
Sudip
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: hb_DiskSpace() Shows Incorrect Value

Post 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
Viva INTERNATIONAL HMG :D
Post Reply