Wednesday, June 8, 2011

Flash Drive/Memory Card files and folders gone due to virus attack. How to restore the files and folders?

Open Command Prompt (RUN> CMD.EXE) and type in “DIR X: /A /S” (replace X with the drive letter) Are the missing directories listed? If yes, that means all the files and folder are in hidden in their file attributes. The /A tells the directory command to display all objects, regardless of their attributes, and the /S tells the directory command to go through all the directories on the disk volume.

Now type ATTRIB X:\*.* -H -R -S /S /D” , it should show the hidden folders and files. The -H, -R and -S options tell the attrib command to remove hidden, read-only and system attributes, while the /S tells it to go through all the directories and the /D to apply the changes to directories as well as files.

No comments: