Hard Drives and Partitions Using VB - TechRepublic
General discussion
May 8, 2001 at 09:02 PM
jcbr

Hard Drives and Partitions Using VB

by jcbr . Updated 25 years ago

Using Visual Basic, I want to be able to identify:
1. Each physical hard drive,
2. Each logical drive letter on each physical hard drive, and
3. The cluster (allocation unit) size for each logical drive.

Windows 98’s “System Properties > Device Manager > Settings” can find items 1 and 2. The command CHKDSK, within a DOS window, can find item 3.

I have tried various search keys on various web sites, searched the Windows API functions, without success. All I have found are examples for finding available space on hard drives, but nothing regarding physical drives and their partioned logical drives.

Any help that you can give me, pointing to suitable API’s or elsewhere, will be greatly appreciated.

My interest is with VB6 and later, and Windows 98 and later.

This discussion is locked

All Comments