? Directory Validation Bug???
Esteemed Forum Participants and Lurkers:
.NET Framework 1.1 - VB.NET 2003
I'm trying to validate a directory, and I've come across a weird anomaly ...
I have a directory: C:\Table
The following
Code:
Dim attr As FileAttribute
Try
attr = GetAttr("C:\\\\\Table\\\")
If (attr And FileAttribute.Directory) = FileAttribute.Directory Then
MsgBox("VALID")
End If
Catch
MsgBox("NOT valid")
End Try
Returns "VALID" - I would expect it to catch an exception for the invalid Path specification???
Thank you for any comments, suggestions, or assistance.