Monday, October 04, 2010

Finding disappeared files and folders after virus infection of pen drive

Some viruses and worms makes the folders disappear and replaces them with applications or shortcuts to applications that are virulent in nature.
The good side of some of the viruses is that they dont delete the actual contents of the infected system.
For example,in pen drives they hide the files and folders.
Normally, these hidden files and folders can be unhidden by utilizing the "Folder Options" menu in the Tools menu of Windows explorer.
But,most viruses delete the "Folder options" menu and "Task Manager" as well.
One solution is to unhide the files and folders from the command prompt.
To do this,
1.Goto Run (Windows+R)
2.Open Command prompt by typing cmd and press "Enter"
3.Navigate to the pendrive by typing its appropriate drive letter(like E: )
4.Type the following command to unhide the files

attrib -s -h *.*

attrib -s -h *
attrib -s -h /d /s

Now your files will be visible.

Make sure to keep the antivirus up-to-date to prevent viruses.

31 comments:

  1. Thanks a lot man. You are a life saver !!

    ReplyDelete
    Replies
    1. Sure Zake, glad to be of help!

      Delete
  2. Abhishek Kothari5:25 PM

    thanks a lot...recovered imp stuff

    ReplyDelete
  3. Hi There,

    I tried doing this and it just says "access denied" for all of my files.

    Any other suggestions? Much appreciated!

    ReplyDelete
    Replies
    1. Try to run the "Command prompt" using "Run as Administrator"

      Delete
  4. Prabhu4:05 PM

    Thanks Bharat. I was also worried that I had lost 300GB of data in my ext hard drive. Recovered every byte of it. Thanks a ton.

    ReplyDelete
    Replies
    1. You are welcome, Prabhu.

      Delete
  5. I do not have proper words to thank you dear. You saved me 1TB of information. Thank you very much. May God bless You.....

    ReplyDelete
    Replies
    1. Sure Gourab! Thank you! :)

      Delete
  6. Anonymous3:35 AM

    CLASSIC !! Thanks. I had that problem before and I'm happy that now I found your post...

    ReplyDelete
  7. Anonymous12:59 AM

    Thank you, it works great.

    ReplyDelete
  8. Anonymous12:43 PM

    Thank you very much!

    ReplyDelete
  9. Anonymous7:51 PM

    Thanks it worked

    ReplyDelete
  10. Anonymous4:14 PM

    Like Like Like Like Like :D

    Last 3 times I asked a friend who had linux to copy everything down - format - copy back

    Thank you very much from Hungary

    ReplyDelete
    Replies
    1. Thanks! Thanks! Thanks! :)

      Delete
  11. Anonymous8:38 AM

    works flawlessly, like a charm :)
    THANKS A TON BRO!

    ReplyDelete
  12. Anonymous1:04 AM

    Thank U̶̲̥̅̊ from Nigeria

    ReplyDelete
  13. Anonymous8:02 PM

    thank u so much for this! i've had this problem so many times n thought i lost everything!!
    im so happy now!!

    ReplyDelete
    Replies
    1. I am glad that you are happy!

      Delete
  14. Thank you very much for this post. Realy helped to recover my data.

    ReplyDelete
  15. This comment has been removed by a blog administrator.

    ReplyDelete
  16. Thank you so much Mr. Bharath, this worked 100% on my 2 Terabyte SATA Portable hard drive and my 64 GB Flash drive to recover ALL my files. Once again, thank you from the United States!!!
    September 24, 2015

    ReplyDelete
    Replies
    1. Thank you John, for your kind words. Happy to be of help.

      Delete