DriveInfo.GetDrives : Drive « Stream File « VB.Net Tutorial






Imports System.IO

public class Test
   public Shared Sub Main
        For Each drive_info As DriveInfo In DriveInfo.GetDrives()
            Console.WriteLine(drive_info.Name)
        Next drive_info


   End Sub
End class
C:\
D:\








13.15.Drive
13.15.1.Get current Drive
13.15.2.Get Logical drives
13.15.3.DriveInfo: Name, IsReady, DriveType, RootDirectory
13.15.4.DriveInfo: AvaiableFreeSpace, DriveFormat, TotalFreeSpace, VolumnLabel
13.15.5.DriveInfo.GetDrives