Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

After Win32/Dorkbot.D worm the folders become hidden and have system attributes (marked as critical system files). Cannot unhide folders using standard File Option dialog window. How to restore previous folders' attributes?

enter image description here

share|improve this question
2  
Reinstall from your backup? –  Zoredache Jun 19 '12 at 23:57
    
That's is the backup HDD, which is infected –  RCola Jun 20 '12 at 8:47

4 Answers 4

up vote 2 down vote accepted

You cannot uncheck the Hidden attribute because the affected files/folders also have the System attribute enabled.

Steps to fix

  1. Right click in the root folder/drive of the affected items while holding the Shift key and click Open Command Window Here
  2. Enter the following command in the command prompt:
    for /f %F in ('dir /a:hs /b') do attrib -h -s %F

When the command finishes executing, your files should be restored and the Hidden attribute checkbox will also be enabled.

share|improve this answer

The following command line executed on the affected folder works:

for /f %F in ('dir /a:hs /b') do attrib -h -s %F

...but this is not unhiding any folders with space in folder name e.g. "All Music" folder.

share|improve this answer
    
What if you'll have "%F" instead of %F? Also, be sure to re-read your text when you'll post and format it a little. It will be much easier to read. I did it for you, though. –  John Thomas May 1 '13 at 7:36

Go to the Command Prompt, then type attrib -s -h /s /dx:\*.*

Then presto!! 100% fixed :)

share|improve this answer
    
And what does that do exactly? –  Oliver Salzburg Oct 15 '12 at 9:21
    
@OliverSalzburg - Exactly what the accepted answer does. –  Ramhound Oct 15 '12 at 10:57
    
@Ramhound: I'm not asking because I want to know. But thanks anyway :) –  Oliver Salzburg Oct 15 '12 at 11:13

You may also try this simple windows script for unhiding files and directories. It only prompts the user to input the drive letter then executes the vbscript.

Run your notepad, copy the code below, then save it as unhide.vbs

pc_drive = InputBox("Input drive letter" & vbnewline & "example: E:\", "Drive","E:\")
ryt = Right(pc_drive,2)
   If Len(pc_drive) <> 3 or ryt <> ":\" Then
   Call MsgBox("Either your input was invalid or the drive you specified doesn'texist",vbokonly,"Error")
End If

Set FSO = CreateObject("Scripting.FileSystemObject")
ShowSubfolders FSO.GetFolder(pc_drive)

Sub ShowSubFolders(Folder)
   str =""
   For Each Subfolder in Folder.SubFolders
      str =str & " " & Subfolder.Path
      subFolder.Attributes = 0
      ShowSubFolders Subfolder
   Next
End Sub

You could save it in your USB drive for more accessibility. Instruction how to use it can be found in the link below.

Windows Script For Unhiding Folders Hidden By Worm Virus

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.