Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
dfunton(TextBox1.Text)
End Sub
Private Sub GetDrivetype(ByVal drive As String)
Try
Dim Drive_Info As System.IO.DriveInfo
Drive_Info = New System.IO.DriveInfo(drive)
Label1.Text = Drive_Info.DriveType.ToString
Catch ex As Exception
MsgBox(ex.Data)
End Try
End Sub
End Class