Link to home
Start Free TrialLog in
Avatar of Correctamundo
Correctamundo

asked on

DOS command for making files visible in a folder

DOS command for making files visible in a folder

I seem ed to have made all fiels in a folder invisible / hidden

I may have used this command
whatever directory>attrib -s -h -r /s /d *. *

How to undo this?
Avatar of Bill Prew
Bill Prew

the command you showed would have removed the hidden, system and read only attributes, so I don’t see that as a problem.  unless you did it with plus signs instead of minus signs.  if so then do the command you showed to remove that attribute.

you can scheck what attributes a file has by doing just attrib command on that file and it will display the current attributes set.
I should mention too that there is a setting in Windows Explorer where you can enable showing hidden and system files.  I’m on mobile right now so can’t show a picture, but I’m sure google can find you one if you aren’t familiar.

https://support.microsoft.com/en-us/help/4028316/windows-view-hidden-files-and-folders-in-windows-10

Hi Eds,


Not sure how to undo your settings to original state, but with the "+" you can set the attributes back. Problem is that not always all files have the same properties.


If you do a "attrib -h file" it removes the hidden flag.

The "attrib +h file" adds the hidden flag. 


The /s is the command for all files in the current and sub folder. So "attrib -h -s /s /d *.*" will remove the hidden attribute on all folders and files. The -s is for the sytem attribute which can also be hidden in explorer. 

I guess I should also mention it's easy enough to see what attributes are set for a file or group of files by doing the ATTRIB command with no flags, for example:

User generated image



»bp

@El Guapo,

Are you all set with this now, or do you need more help?  If all set, could you please close it out now.  If you need help with the question close process take a look at:



»bp
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.