≡ Menu

Unhide Files By Single Dos Command

Usually when virus hide files and it also remove folder options it is much difficult to get the files quickly if one is in hurry, although such virus can be removed manually (Read Remove EXE virus manually) ;

But I’m going to tell the the way in which you can UN-hide all the hidden files by on single command.

To apply this command follow the following steps

go to Start > Run > type cmd

Dos will open type cd.. (two to three time until only drive letter left)

now type the drive letter in which you want to Unhide the files lets suppose in my case its F:\

this will open the F: drive

Now type the following command attrib -r -a -s -h *.*

Press enter this command will un-hide all the hidden files in Drive F even its portable memory stick or usual hard disk

Comments on this entry are closed.

  • Phaoloo July 13, 2010, 1:33 pm

    This tip is so useful when you are in recovery mode.

  • zaldhie July 21, 2010, 3:25 pm

    if you want to see all hidden files and folders including system files type using cmd prompt



    wwhhoollaaa! simple…yeah right

  • Metal Snake December 5, 2010, 1:38 am

    Instead, this command will unhide all Folders + subfolders and files:

    attrib *. -h -s /s /d

    For Windows Vista/7 Users, Start CMD by right clicking on it and selecting “Run as Administrator”.

  • Rajnish Bakshi December 20, 2010, 5:28 pm

    This is great……..

  • yajapa January 17, 2011, 8:04 pm

    nice fix, i did this tutorial myself on my website. I used the one Metal Snake used though.

  • Maddy January 26, 2011, 11:26 pm

    Thanks a lot……… madarchodo…… it works?????

  • Forever8 February 4, 2011, 4:41 pm

    Metal Snake,

    Thanks! It worked perfectly!

  • David February 9, 2011, 6:02 pm

    I have windows 7 on my machine. I have tried using attrib *. -h -s /s /d to unhide hidden folders on my external drive and on drive C but i am having the error message of Access denied.
    Any help.

  • zaldhie February 9, 2011, 6:05 pm

    David try to right the cmd and choose run as administrator it might help to you

  • Amit Kumar February 19, 2011, 9:54 pm

    my all file & folder hide in my pen drive due to virus

    is any suggestion to unhide all file & folder

  • Metal Snake February 20, 2011, 6:37 pm

    @Amir Kumar:
    Open CMD and then enter your pen drive letter followed by colon, i.e. g:
    press enter
    now type the below line and press enter and wait for all files n folders to be visible again:

    attrib *. -h -s /s /d

    If you are using Windows 7 or Vista, then Start CMD by right clicking on it and selecting “Run as Administrator”.

    • jas January 27, 2013, 9:51 am

      hi i have the same problem, i already tried that command but it says access denied… 🙁

  • Lakshmi Priyanka February 26, 2011, 2:09 pm

    Thanks a lot sir.

  • enchektom March 4, 2011, 5:46 pm

    i already run as administrator but it still said access denied…hmmm..

  • chandan March 5, 2011, 6:54 pm

    My pen-drive got infected with “Vobfus” worm/virus family. Although, Microsoft Security Essential was nifty enough to detect it and remove it but whats left behind are shortcuts of folders and original folders are hidden. I am unable to UNHIDE them through Windows Property command. They are visible when in command mode and dir/a but I am unable to restore my pen-drive to prior condition. Any Help/suggestions
    Thanks in advance to everybody.

    • Alan Milan October 7, 2011, 4:13 pm

      got also the same problem… it was infected by win32 worm and it couldn’t be unhide though the virus been gone…
      default3349 {“method”:”validate”,”params”:[],”id”:1,”jsonrpc”:”2.0″}

  • Metal Snake March 5, 2011, 7:14 pm

    For people who can’t understand CMD command lines to unhide folders and files:
    1. Download this software “FreeCommander Portable” from
    Link: http://portableapps.com/apps/utilities/freecommander_portable
    2. After download, Open “FreeCommander” and go to your Pendrive.
    3. Select all the files/folders you want to unhide and press “Shift + Enter” on keyboard.
    4. This will open “Attribute/Timestamp” window.
    5. Check “set attribute” and uncheck the checkboxes “Read Only, Hidden and System”.
    6. Also check “Include files and folders in sub folders” to apply attributes to sub folders and files as well.
    7. Click ok and now your pendrive will be same as before. 🙂

  • chandan March 5, 2011, 7:26 pm

    Actually this link helped me better, although it is almost same what this post says but it explains and guides better. http://www.computerhope.com/attribhl.htm
    example :-
    dirve letter:>attrib -r -a -s -h [name of hidden file/folder]

    batch unhiding/adding &/or removing of attributes didnt worked for me. I tried it on XP service pack 3, Vista Ultimate and Windows 7 Ultimate 32 bit.

    Hope this would help you all and other.
    Thanks for reading.

  • Sumit March 14, 2011, 12:48 pm

    Dear i hide somedata in subfolders through prperties function in D Drive. but after using attrib command in DOS i culd not unhide them.
    Please guide me another trick.Rply

  • Senthil Kumar March 22, 2011, 6:23 pm


  • Shahzad Fsd April 5, 2011, 11:50 pm

    Thanks for this beautiful command its very helful

  • gerald gonzales May 23, 2011, 3:20 pm

    Thanks for this website…It helped me a lot.

  • rahul August 10, 2011, 8:27 pm

    thank u alll …

  • guru@g December 8, 2011, 10:47 am

    it worked…………@Thnx

  • boy March 13, 2012, 4:50 pm

    it not working and doesn’t show the hidden file 🙁
    when i type : attrib -r -a -s -h *.*
    it show that :
    The target of the symbolic link G:\DCIM\???? does not exist
    The target of the symbolic link G:\DCIM\ does not exist
    please help !!!

    • Sanix March 13, 2012, 6:49 pm

      @boy: Try changing your working directory in the command prompt and try this command on other folders. If this works, the problem will most probably with the single folder..

  • Ali noyan May 22, 2012, 11:22 am

    metal snake , thank u soooo much for the link .

  • makamache September 3, 2012, 4:01 pm

    1 Open the Start menu and type “cmd” into the Search box to open the command prompt. In Win 7 after you type cmd in search box, right click on the command prompt icon & then click on run as administrator.
    2 DOS will open, and then you type cd… (This you do 2 (two) to 3(three) times until drive letter is only left).
    3 Type the drive letter in which you want to unhide the files let’s suppose in my case it’s F:, this will open the F: drive.
    Now type the following command attrib -r -a -s -h /s /d *.* & press enter. Done

  • nitin October 19, 2012, 8:54 pm

    can any1 tell how to unhide a folder which is in some other folder without knowing their names.?

  • sakthi November 22, 2012, 1:37 pm

    working good