CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    16

    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!


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    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
  •  





Click Here to Expand Forum to Full Width

Featured