Sooner or later, every programmer wants  to access drive and folder information.  I've had many questions about the techniques, so I  decided to post this demo program.  

 FindFirst and FindNext  functions are used to access folder information .  Windows API functions   GetLogicalDriveStrings and GetDriveType  give us access to drive information.    Their usage is straightforward once you know which functions to use.  

The program will 

 

You can download the source for DriveDemo here.