Files Hidden by Virus. How to Unhide Them?

The Problem

My girlfriend was panicked when she found out her Final Year Project files were missing from her thumb drive. She thought the files were already gone by a virus attack or were accidentally deleted by her friends.

After I did some analysis, I found out the files are still there but a virus had modified the file properties to ‘Hidden’ and hide all files in the thumb drive.

Although she tried to “Show Hidden Files” but the virus does not allow her to view them. Luckily, she has a very intelligent and clever boyfriend who guides her on how to overcome this problem.

The Solution

1. Insert the thumb drive to an empty USB slot. Take note the drive letter. For an example, F:.

2. Press Windows + R, and type “cmd“. Ok.

>>> Click HERE to fix your PC errors with ease… <<<

3. Enter this command,

attrib -s -h -r f:/*.* /s /d

4. Press Enter and wait for the command to execute.

5. Open the thumb drive and you should see the files that were hidden by the virus.


Hopefully with this guide she can help her friends to solve the same problem. And yes, I also hope this guide will solve your files hidden by virus problem too. BTW believe me, university is the best place for virus to spread!

PS: All folders in your thumb drive become shorcut? I got the solution here… 🙂

PPS: If your PC still having problem, you can either scan your PC with antivirus or repair it to speed up by using Registry Easy.


  1. iamgrace says:

    wow! thank you 🙂
    it did work..

  2. Alex Hong says:

    Nice work, thanks, it helps me alot

  3. Andre Douglas says:

    Thanks a mil. That was very helpful!


  5. 10 x it works 🙂

  6. Hi!

    Unfortunately I get the error message “Unable to change atribute”

    Do you know any workaround this?

  7. Wow, it really worked, opposite to my expectations.

    Thank you so much

  8. Hi! I get the message “Access Denied – E: \ System Volume Information” What to do next? 🙂 Thank you!

    • Run your MS-dos prompt as Administrator then follow the instructions..

    • my pc said “Path not found – F:/” ….what will i do?:(

    • Joseph Portales says:

      Depending of what volume letter is your usb drive, you should change the command:

      F drive: attrib -s -h -r f:/*.* /s /d
      E drive: attrib -s -h -r e:/*.* /s /d
      G drive: attrib -s -h -r g:/*.* /s /d

      I hope it helps!


  9. Thank u soooooooooooooo much !!!!

  10. Thanks a lot! It worked! Your girlfriend must be very proud of you!

  11. Arollxx says:

    thanks a lot…it is working…

  12. You, sir, have saved my and my friends’ lives almost literally. THANK YOU SO MUCH.

  13. hi it says, “access denied”

    • try to run yung MS-DOS Prompt as Administrator then follow the instructions. hope it works..

  14. Heinrich says:

    ..Thank you so much sir 🙂 Now I found out the files hidden by the virus. thanks a lot sir

  15. mohammad says:

    thank you ! you solved my problem !

  16. wow!..great..tanx.

  17. Thanks man, it worked for me as well. Many thanks!!!!! God bless.

  18. thanks man you really safe my life

  19. Sanjay Khan says:


  20. Wow, this is awesome. it works like magic. Thank you for this post

  21. thanks a lot… it really works 🙂

  22. where i can find MS-DOS ..

  23. i love you man

  24. Lee-Ann Sayasa says:

    Thanks a LOT! I recover my important files.
    Thank you very much….

  25. MAN kiss yourself in behalf of me

  26. مصطفى says:

    الف رحم الله والديك

  27. Abid Khan says:

    LoveYou man Umuah Umuah Umuah :*

  28. hi thanks a lot…weeew now i did it this time very well hahahhahaha after trying some options heres the best thanks again…u share ur knowledge for us!!:)

  29. Thank you Thank you Thank you very much

  30. THOUSANDS OF ONE says:


  31. Thanks dude… I thought i needed to install a software to unhide my files but with your simple instructions i dont have to download and install another software.

    Thanks again….

  32. Saifullah says:

    Thanks. It also worked for me.

  33. Ali Saeed says:

    Thank U So Much.
    I was very Much Worried about my very important data.
    This is awesome. it works like magic.
    Thank you for this post.. 🙂

  34. Thank you so much for the help! I am so close to re-typing all my lost files just have it compiled. :))

  35. Thanks a lot for the tips. 🙂

  36. MiroslavBGD says:

    Tnx a lot man 🙂
    i had lots of hidden files and i could only see them with Total Commander…
    now its all fixed 🙂

  37. Sai Prasad says:

    Thank you very much. It worked on my 4GB pendrive. Will it work on my 160GB portable hard drive too?

    • Sai Prasad says:

      Oops… it didn’t work on my 160GB portable hard drive. It says “Access Denied” multiple times, perhaps once for each folder. What can I do?

  38. Sai Prasad says:

    Oops… it didn’t work on my 160GB portable hard drive. It says “Access Denied” multiple times, perhaps once for each folder. What can I do?

  39. It’s working! Thanks a lot!

  40. taeminia says:

    thanx genius…

  41. Thank You

  42. Abhishek Anand says:


  43. it works! muchos gracias!

  44. It worked, now I have my files back. Thank you.

  45. Thanks for the sharing. Really worked. Cheers!!!

  46. Ramiz Anjum says:

    10/10 Bundle of Thank Bro…

  47. one usb i can fix, but another one show this message on cmd “found.000\dir0000.chk” .how to fix this?

  48. I had retrieved the folder but it is showing as hidden only… I am unable to change the attribute to normal folder.

    After “Right Click”-> “Properties”-> In Attributes the status of Hidden is locked.

  49. have you tried KrojamSoft FilesSearch? it can help

  50. Bagus bro keep up the good work…