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
Returns "VALID" - I would expect it to catch an exception for the invalid Path specification???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
Thank you for any comments, suggestions, or assistance.




Reply With Quote