Jump to content

A question in VB.NET


Guest Fanooos
 Share

Recommended Posts

Guest Fanooos

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...