Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i hide my folders and files through hidden attributes of command prompt,i am struggling to unhidden all sub folders and files,

how i hide the files

in command prompt

attrib +s +h "foldername"

how i tried to unhide

attrib -s -h "foldername"

Problem i face :

while i tried to unhide the folder only the folder gets revealed,whereas still the subfolders and files inside the folder remain hidden

how to unhide all subfiles and folders through command prompt else how to remove hidden attributes for subfiles and folders

thanks in advance

share|improve this question
up vote 3 down vote accepted

add more /s /d options to your command

  • option /s says that "processes matching files in current folder and all subfolders"
  • option /d says that "processes folders as well"

attrib +s +h /s /d "foldername\*"

attrib -s -h /s /d "foldername\*"

I already tested, it worked for me

share|improve this answer
use only /s option does not worked, use both /s and /d options – Dai Nguyen-Van Jul 15 '14 at 7:06
Not working still my files inside the folder remains hidden :) – BlueBerry - Vignesh4303 Jul 15 '14 at 11:46

have you tried the recursive mode

attrib -H -S /S

found here

share|improve this answer
file not found while i tried to remove with the above command :( but still the files are hidden inside folders – BlueBerry - Vignesh4303 Jul 15 '14 at 11:48


attrib +s +h /s /d "folderpath\*.* "


Use attrib -s -h /s /d "folderpath\*.* "

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .