-
Disk Size?!
Few days ago I've write code in VBA (MS Access 2000) that return free space and total space on hard disk. But I have the problem. Code return wrong value 2,048 Mbytes of free space. Actually free space is 27GB. I've tried to make little .exe file in Visual Basic 6 - same result - 2147155968 bytes free space. What can cause that?!
When I copy same code (I mean your program or .exe file what I made) on other computer I get adequate result depending of free space on HD.
I kindly ask you to send me an answer.
NOTE: Other programs; for hardware monitoring, WinExplorer, Commander ...etc. return exactly right size of free space and total space of HDD
Configuration:
AMD Athlon XP 1600+
Windows 98SE, MS Office 2000
HDD Maxtor DX 540 rpm; 40Gb (4D040H2 DAH01)
-
hm ... interesting --- I used the FSO model and got exactly the same results as you did. Any drive with more than 2 gigs of free space shows up as 2 gigs of free space. I hypothesise that Microsoft build this when 2 gig drives were considered the holy grail. It wouldn't be the first time they've build dumb limitations into their stuff.
-
I think there's no limitation at 2GB, because I try that code on PC with 30 GB HD without problem