|
-
April 1st, 1999, 07:20 AM
#1
How to Check harddisk space larger than 2GB?
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!
-
April 1st, 1999, 08:27 AM
#2
Re: How to Check harddisk space larger than 2GB?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|