? Directory Validation Bug???

A

Art

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???

How do I forward a 'bug report' to Microsoft?

Thank you for any comments, suggestions, or assistance.
__________________
Blessings in abundance,
All the Best,
& ENJOY!

Art
Carlisle, PA USA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top