View Single Post
04 Apr 2012  

Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS

Quote   Quote: Originally Posted by pxfragonard View Post
Quote   Quote: Originally Posted by writhziden View Post
Another option is to put the batch file in the top level directory. You could make two batch files, one with a +h called hide.bat and one with a -h called unhide.bat for instance. In the top level, create the hide.bat file with this command:
attrib /s /d +h *.dop
and the unhide.bat file with:
attrib /s /d -h *.dop
These will hide/unhide all files in the current directory and every subdirectory within that directory.
Thanks for a very elegant and simple solution. I take it s / d means subdirectory... very nice!
Here's what they mean:

/S Processes files in all directories in the specified path.
/D Process folders as well.

You can type attrib /? in a command window to know as what switches does it support and what they do.

If you just type /? you'll get a list of all the commands with their respective brief explanation...

You can do wonders (as i like to say) by mastering the commandline.. :P
My System SpecsSystem Spec