Active property of folder/file which are disable by Viruses

Asked By 300 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by Mr.Solution
Best Answer
Best Answer
Answered By 0 points N/A #89202

Active property of folder/file which are disable by Viruses

qa-featured

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

Answered By 300 points N/A #89204

Active property of folder/file which are disable by Viruses

qa-featured

I can't able to access drives and folder in VB form tell me about it.

Answered By 0 points N/A #89205

Active property of folder/file which are disable by Viruses

qa-featured

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

Answered By 0 points N/A #89206

Active property of folder/file which are disable by Viruses

qa-featured

Yeah its right code please try above code.

Answered By 300 points N/A #89207

Active property of folder/file which are disable by Viruses

qa-featured

Thanks for help.

Answered By 0 points N/A #89209

Active property of folder/file which are disable by Viruses

qa-featured

Welcome. Post back when ever you have any issues

Related Questions