Click to See Complete Forum and Search --> : How to Check harddisk space larger than 2GB?


Paul Chan
April 1st, 1999, 06:20 AM
Hi! Everybody!
I want to know how i can get the free and total space of harddisk and its amount is larger than 2GBytes. I try the WinAPI function of GetDiskFreeSpace function to relieve the free and total space but the value of Free and Total space can only reach 2GBytes harddisk. Is there any method to check the diskspace of the harddisk larger than 2GBytes?
Thank you anybody help!

Chris Eastwood
April 1st, 1999, 07:27 AM
Hi

This is due to the GetDiskFreeSpace API being written before FAT32 was invented.

Ray Mercer has an excellent example at his site :

http://i.am/shrinkwrapvb

(called GetFree.exe - or similar) which shows how to use GetDiskFreeSpaceEX correctly to get the desired result.

Regards

Chris Eastwood

CodeGuru - the website for developers
http://www.codeguru.com/vb