How to Hide File using VB.Net

Private Sub HideFile(ByVal strFilePath As String)

 Try
    Dim strFInfo As New FileInfo(strFilePath)
    strFInfo.Attributes = FileAttributes.Hidden
    MessageBox.Show("Successfully Applied.")
 Catch ex As Exception
    MessageBox.Show(ex.Message)
 End Try

End Sub

Related Posts by Categories



Stumble This Fav This With Technorati Add To Del.icio.us Digg This Add To Reddit Add To Facebook Add To Yahoo

0 comments:

Post a Comment