How To Recover Super Hidden Files From Pendrive Using Command Prompt

We all mostly use pendrives for carrying data from one computer to another. Your data in pendrive is important to you. Viruses are the biggest problem for the pendrives. Commonly most of the viruses infects through the pendrives. Some of the viruses superhiddens the files and folders in your pendrive and creates a duplicate folder with “.exe” extension.

There are some tools to change the attributes of files and folders to normal folders. Now lets us learn resetting super-hidden files to normal attributes.

Basically we can view super hidden files by changing a setting in folder options.
Read: How To Enable Super Hidden Files

If the Folder Options is not available due to the virus infection. You can reset files/folders in pendrive using command prompt.

How To Recover Super Hidden Files Using CMD

  • Plugin pendrive to your computer.
  • Note the Drive Letter of your pendrive. Example: H
  • Open Run by pressing Win+R.
  • In Run box type cmd and press Enter.
  • Command prompt will appears. Type the Drive Letter of your pendrive followed by a colon. Example:  H:
  • Next type: attrib -s -h /s /d *.* and Hit Enter.
  • Note: Make sure that there should be a space after every command.
  • Wait for some time until it completes. Now you can see all the files and folders in your pendrive will be at normal state.

Read: More Tips.

     Share this useful tip with your friends.

    About krishna

    I am a tech lover. just wander around the net for the latest tech news. I like to share the intresting news to freinds.


    1. thanks u so much

    2. welcome shankar.. Keep visit

    3. Anonymous says:

      Thankyou so muchh

    4. Thank you very very much. I have been searching ways to recover my hidden filed in the hard disk for many months and could not find any correct way. I am tired of searching in the net, but thank god! i have seen this web site with your correct solution. It really works and I have recovered my important files after many months.

      Thanks for your valuable service.

    5. Anonymous says:

      thanks a lot :)

    6. Anonymous says:

      Thanks for U Guys…

    7. You forgot the -r option. -r will make the Read-only attribute gone.

      so your typical commands should be,

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

      rd recycler /s /q

      erase autorun.inf

      erase whatever.bat

      Note: replace whatever.bat with any other complete file name which you have identified after the 1st command. And keep on repeating until you see that all the unwanted files are removed.

      If you see that a file with the same name in every folder in your pen drive, then try (let’s think the fie name is, abc.exe)

      erase abc.exe /s

    8. how much time will it take? mine is 16 gb

    9. thanks buddy….

    10. i tried attrib -s -h /s /d *.* it worked… but now the problem is i couldn’t go to the original state as it was before. So, please send me the code for its restate…. sooner… waiting for your reply..

    11. Anonymous says:

      Thanks for the help

    12. Tested this trick. its working

      Thanks friends.

      Thumb UP.

    13. THank u so much…very much helpful

    14. Thank you. I could recover all of the hidden data from my corrupted pen drive.

    15. Anonymous says:

      I need help. What if the flash drive has been formatted. Can data be retrieved??

    16. Thank you very much

      It worked like a charm

    17. thank u so much………I recovered my important files in my pendrive

    18. tnx dude, i got it……….

    19. Anonymous says:

      Krishna Chippa, What to do when you plug in your pendrive in to the computer and prompts you to format it first before you can use it again?

    20. Tnx


    22. Anonymous says:

      helped really…
      but pblm is da drive hides dem frequently

      • Then you need to clean your computer from viruses, use a good antivirus. Try Microsoft Security Essentials, if your windows is original.

      • Yes, as Bharath said it is happening due to virus infection on your computer. So you have to scan your computer with antivirus software and remove all the viruses. Your problem will get solves.

        Thanks Bharath for Making comment here.

    23. Pen Drives are the great avatars for people who always need to carry data along with them. Also, referred to as USB drives or flash drives; they are small, light-weight, cute and attractive.

    24. Anonymous says:

      Thanks a lot… I ve just executed the command hope it works!

    25. Anonymous says:

      Thanks a lot.i recovered all my hidden files.

    26. Anonymous says:

      hey i hv done the command process but the problem is it appears unhidden for a few seconds and thereafter it becomes hidden again….wht should i do? Thanks in advance

    27. Anonymous says:

      My problem is when I put this infected pendrive in USB slot drive appears but not able to open the same as if typed G: and enetered, it shows enter disk in drive … cancel, try again or continue. What to do? please guide

    28. i have problem in my hardisk, after format i couldn’t see my files, it’s taken the space, but i can’t see it, it’s just not exist !

      do u have any idea about what should i do …

    29. Anonymous says:

      thanks dude

    30. Thanq u Mama. i got my files….

    31. Anonymous says:

      Great! It’s working!

    32. Anonymous says:

      thnks a loooottt..
      u make my day…

    33. Anonymous says:

      Hi frnd……ur this trick actually saved my life……awesome man u r doing a great job. I wish u a very bright and fantastic future. Thank You for the post.

    34. Anonymous says:

      Thanks a bunch!

    35. Anonymous says:

      Thank u

    36. Anonymous says:

      thanks shaker
      this tip has helped me

    37. Anonymous says:

      Thank you so much for your page… It was really a big help for me.. I was able to retrieve all my important files from my pen drive,,,

    38. awesome……….

    39. than q vry mch………. now i can relax

    40. Anonymous says:

      It’s work nicely… Thanks a lot

    41. Anonymous says:

      i tried cmds but it shows access denied e:\recycler.bin….

    42. thanks sir thank u very much


    44. Yay!
      It worked
      Thanks Krishna ^_^

    45. Great! I am really happy I could get all my files back from ‘Infected Hidden’ folders in pen drive.

    46. Anonymous says:

      thank you so much .. this is really helpful ..

    47. Anonymous says:

      Awesome it worked for me

    48. attrib -H -S G:\*.* /S /D /L

    49. it shows ‘attrib’ is not recognized as an internal and external command,operable progrm or batch me wt to do with tis?

    50. thank youuuuu

    51. Thank you very much

    Speak Your Mind