Imports System.IO
For Each di As DriveInfo In DriveInfo.GetDrives()
ListBox1.Items.Add(di.Name)
Next
DriveInfo has the following properties:- AvailableFreeSpace Indicates the amount of available free space on a drive
- DriveFormat Gets the name of the file system, such as NTFS or FAT32
- DriveType Gets the drive type
- IsReady Indicates whether a drive is ready
- Name Gets the name of a drive
- RootDirectory Gets the root directory of a drive
- TotalFreeSpace Gets the total amount of free space available on a drive
- TotalSize Gets the total size of storage space on a drive
- VolumeLabel Gets or sets the volume label of a drive