Get File Attributes in VB.NET
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET
Illustrates how to get file attributes in VB.NET. This example, which just checks if a file is a hidden file or not and writes the results to the console, is just intended as a starting point. Obviously, you'd want to check for other attributes besides hidden (you can use intellisense in the IDE to enumerate them), and you'd probably want to return the results as opposed to writing them to the console.
Instructions: Copy the declarations and code below and paste directly into your VB project.