• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Windows APIs > 11.12. Retrieve Information About Available Drives

11.12. Retrieve Information About Available Drives

Problem

You’d like to be able to gather specific information about the disk drives in your computer: for example, how large they are, how much space is free, whether they’re local or remote, and whether they’re removable or not. Access does not provide this information. Is it available using a Windows API function?

Solution

The Windows API provides three functions that you can use to extract information about the drives in your computer: GetLogicalDriveStrings, which returns a string containing a list of all the logical drives; GetDriveType, which returns information about the specified drive; and GetDiskFreeSpace, which returns information about the total and free disk space for a specified drive.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint