Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking if a file is a hidden or system file
Message
From
14/04/2005 13:27:36
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Checking if a file is a hidden or system file
Miscellaneous
Thread ID:
01004782
Message ID:
01004782
Views:
54
Hello,
I am having so much trouble getting this to work, and it should be so easy..
        Dim Files() As String = System.IO.Directory.GetFiles(strPath, strPattern)
        Dim file As String

        For Each file In Files
             Dim fileDetails As System.IO.FileInfo = New System.IO.FileInfo(file)
             *ADD IF STATEMENT TO SEE INCLUDE ONLY FILES THAT ARE NOT HIDDEN OR SYSTEM
        Next
For some reason, I just can seem to get the syntax right to check to see if the file is hidden or system. Thanks for any help!!

-MAC
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform