Active property of folder/file which are disable by Viruses
Help me any one all my files and folder are go to hidden when going unhide this option is disable. Please provide me a solution.
Help me any one all my files and folder are go to hidden when going unhide this option is disable. Please provide me a solution.
Hi choudary,
When this virus run in you system it hide all the folder. This virus disable file properties, you have to enable these properties. You can do this by vb.net i will give you the way to handle it. This is a core code:
objDirectoryInfo.Attributes = FileAttributes.Normal
I can't able to access drives and folder in VB form tell me about it.
Here is the code to get directories from you system. I hope you will find it helpful.
Private Sub cmbDrives_SelectedIndexChanged (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbDrives.SelectedIndexChanged
lstFolderList.Items.Clear()
Dim arrFolderList As String() = Directory.GetDirectories(cmbDrives.Text)
lstFolderList.Items.AddRange(arrFolderList)
End Sub
Private Sub btnShow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShow.Click
For Each foldername As String In lstFolderList.Items
Dim objDirectoryInfo As New DirectoryInfo(foldername)
objDirectoryInfo.Attributes = FileAttributes.Normal
Next
End Sub
Yeah its right code please try above code.
Welcome. Post back when ever you have any issues