Vb.NET - Cheat Sheet to retrieve the Drives on the Local Computer



Retrieves the drive names on the local computer.

'Namespace: System.IO

Dim driveNames As New List(Of String)
        For Each drive As DriveInfo In My.Computer.FileSystem.Drives
            driveNames.Add(drive.Name)
        Next

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.