Hi is there a function in VB.NET somewere werte I can detect if a string is a drive. for example
something like this isdrive("c:\") or isdrive("C:") I tryed to make a function but I don;t think it very good way anyone know of other way thanks.
here my code function example.
something like this isdrive("c:\") or isdrive("C:") I tryed to make a function but I don;t think it very good way anyone know of other way thanks.
here my code function example.
vbnet Code:
Private Function IsDrive(ByVal Source As String) As Boolean If (Source.Length = 2) And Source.EndsWith(":") Then Return True End If Return False End Function