Solved how to use attrib command to unhide all subfolder files?

August 22, 2014 at 15:40:22
Specs: Windows 64
I tried using the below command to unhide all the files in the favorites folder using:

atttir -h c:\users\%username%\favorites\*.* /S

It didnt work. How can I fix this by typing just one command rather than going into every subfolder and using the attrib command? Thanks.


See More: how to use attrib command to unhide all subfolder files?

Report •

#1
August 22, 2014 at 17:42:43
I'm not sure what you expected from that command. You pointed it to the favorites directory. Why would any files in favorites & it's sub directories be hidden in the first place? None of mine are marked hidden.

The world is full of rats, Republicans & Democrats.


Report •

#2
August 23, 2014 at 00:54:57
You said it didn't work. Did it give any error message?

My guess is you need to use the exact user folder name and not just %username%. So you probably need to run the attrib command for each username but won't have to do that for their subfolders.

And of course it won't work if you spell it as 'atttir'.

Don't forget to preorder your Hatch green chili for this fall. Many vendors ship world-wide.


Report •

#3
August 23, 2014 at 07:26:00
✔ Best Answer
"Favorites" is more than 8 characters so use this command (with quotes) instead:

attrib -h "c:\users\%username%\favorites\*.*" /S

As already said, you might need to substitute your computer name for %username%.


Always pop back and let us know the outcome - thanks

message edited by Derek


Report •

Related Solutions

#4
August 23, 2014 at 09:16:36
Yes the quotes made it work. Thank you

Report •

#5
August 23, 2014 at 09:19:00
That's good - thx for popping back to let us know.

Always pop back and let us know the outcome - thanks


Report •

Ask Question