How To Show All Files And Folder Hidden By Virus in Windows 8, 7 and XP

December 3, 2013

How To Show All Files And Folder Hidden By Virus Using Command Prompt In Windows 8, 7 and XP

Sometimes you got a problem when your computer has so much viruses and your antivirus failed to detect it. You insert an external device like pen-drive, Flash drive or memory card or any other external storage device and all the data of the devices are got hidden and a shortcut to those files are created. On that case the files are not deleted they are hidden by some-kind of viruses (Shortcut virus). If you format the drive then all the data will be deleted. Complete the below process to recover those hidden files and folder without deleting the data using Command Prompt (CMD). The process works well on all version of Windows Operating System after XP SP2 (Windows XP, Windows Vista, Windows 7, Windows 8, Windows RT etc..)
Also Check: How To Create a Folder Without Icon And Name

Process To View All The Hidden Files And Folder using Command Prompt in Windows

  1. Open Command Prompt (CMD) as an Administrator.
  2. Navigate to the drive whose files are hidden and you want to recover.
  3. Then Type attrib -s -h -r /s /d *.* and hit Enter.
  4. That is it. Now you will get all the hidden files and folder as general files and you can use it.
Note: You can also show all types of hidden files and folder without using Command Prompt.
Also Check: How to show all the hidden files and folder without using Command Prompt


  1. Abhirath Mahipal says:

    Will give it a shot. I have thousands of folders and might not have noticed missing folders at all 😛

    Nice tip. Never knew about this.

  2. farkan says:

    great info and good post thankss for sharing this post

  3. Srimal says:

    Thanxxxxxxxx Lotttttttttt….!!!!!!!!!!!!!!

  4. learner newbie says:

    i have confidence that the commands you posted work but i can’t understand why you haven’t explained what they mean…

  5. girish says:

    its working…

    thanks a lot..

  6. dericko says:


  7. Semage Namal Surendra says:

    Very Useful. Thank you very much.

  8. Sylvaster Nave says:

    After I entered all those above things I hit the enter key it said file not found – *.*

  9. Pali says:

    Thanx… It Worked for me…

  10. soumya maitra says:

    It’s good!

  11. REDSPD3GT says:

    YES!!!! Thanks alot it worked. Some file still have the shortcut icon. Working on that now. Main thing my files have returned.

  12. Thank you. I remember now what to do. God bless.

  13. usman says:

    its not working in windows 8.1 i tried my best plz tell me some elz way

  14. manOman says:

    folks try this amazing program that will unhide all your files and folders with a click of a button!
    get Visualizer Plus at:
    good luck!

  15. Nike says:

    It says that “File not found – F:*.*” what to do?

  16. Ijaz says:

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

    when I write this command in the command prompt, it says that “Invalid switch – /s/d”

    Please tell me how to resolve the issue.


  17. Mark says:

    says access denied

  18. STRANGER says:

    its working 100% .. i need helpful.its really graet.. love it

  19. Fahian Mahmud Fahin says:

    It says, access denied – in my case :/

  20. anonymous says:

    I think am ill luck on this
    I entered it all word for word
    Reply=invalid switch

  21. Nadz says:

    Mine.. never worked.
    Mine says..
    Access denied – e:/system volume information

  22. Ian Sazom says:

    Worked for HEUR.Trojan.Win32.Generic (detected by Kaspersky)

  23. George says:

    Thanks a lot, it works

  24. Kolawole says:

    Thanks man, you saved my job.

  25. rj says:

    it shows attrib is not reconized in as internal or external command what to do

  26. Rana says:

    its giving error access denied, Kindlly help

  27. shazia says:


    after navigating the drive when i type Type attrib -s -h -r /s /d *.* and hit Enter it shows the (‘ attrib-s-h-r is not recognized as an internal and external command,operable program or batch file.

  28. rohan says:

    i can’t remove hidden virus from the c drive

  29. jofed says:

    it says access denied?

  30. Fred says:

    I tried this many times and it worked but now it doesn’t..

  31. Kirollos Yanni says:

    Solved bro, thanks a lot 🙂 <3

  32. reza says:


  33. clarence says:

    it didnt work. what do I do?? CMDjust said “not recognized as an internal or external command. please help

  34. jonel abengania says:

    Thanks so much!

  35. nabadwip says:

    my memory card using space but can’t show folder, my system open system folder show, using this command attrib -s -h -r /s /d *.* what i do?

  36. JaY PaTeL says:

    Thanxxxxxxxx Lotttttttttt….!!!!!!!!!!!!!!

  37. H says:

    wow gooooood

  38. Sameh Nafie says:

    It worked, thanx

  39. jon oti says:

    my flash drive is hidden and when i go to my pc and checked the check boxes on the view tab i can only be able to see it as drive drive D and am told to insert drive on attempt of opening it ””what can i do

  40. Lahiru Dhananjaya says:

    Thankz lot

  41. sakthi says:

    yeah its working,
    good performance

  42. mannoo choudhary says:

    thank u so much very good

  43. Toxic says:

    THis is Not Working!!!!

  44. Neeraj says:

    it worked for me. the folder showed up with no name, had to just rename it.

  45. Binaya says:

    says access denied but works perfectly.
    thank you.

Leave a Reply