Get Logical drives : Drive « Stream File « VB.Net Tutorial






Imports System.IO

Public Class Tester
    Public Shared Sub Main
    
        Dim StrS() As String
        Dim i As Integer

        StrS = System.IO.Directory.GetLogicalDrives()
        For i = 0 To StrS.Length - 1
            Console.WriteLine(StrS(i))
        Next i
    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