Guest Fanooos Posted January 1, 2007 Share Posted January 1, 2007 hi all i am a beginner in vb.net programmingi have a question i hope any 1 help me inhow can i show the hidden files using vb.net 2005?thank any way Link to comment Share on other sites More sharing options...
aspnetguy Posted January 2, 2007 Share Posted January 2, 2007 you mean hidden files in a directory??? Try making the hidden files visible through Windows Explorer and see if that lets you see them in VB Link to comment Share on other sites More sharing options...
raviprakashg Posted January 3, 2007 Share Posted January 3, 2007 see this topichttp://w3schools.invisionzone.com/index.php?showtopic=10066 Link to comment Share on other sites More sharing options...
aspnetguy Posted January 3, 2007 Share Posted January 3, 2007 see this topichttp://w3schools.invisionzone.com/index.php?showtopic=10066 Do not hijack this thread! You won't be warned again! Link to comment Share on other sites More sharing options...
pulpfiction Posted January 3, 2007 Share Posted January 3, 2007 This will list all the files that are hidden in the mentioned path. Dim storefile As System.IO.Directory Dim directory As String Dim files As String() Dim File As String Dim info As System.IO.FileAttributes files = storefile.GetFiles("C:\", "*") Response.Write("These are file is hidden in the given directory") For Each File In files Dim attr As IO.FileAttributes = IO.File.GetAttributes(File) If (attr And IO.FileAttributes.Hidden) <> 0 Then Response.Write(File & "<BR>") End If 'Response.Write(File & "<BR>") Next Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now