I want an easy command to the run the Attrib +S "Directory Name" command on a all of the folders within the current directory. I figure piping output of dir /AD /B is a good start, since it lists all the folder names in the current directory.
However, I guess my problem is I can't figure out how to append quotes in what I'm doing right now now (see code below). Any ideas how to fix?
(I'm only looking for a code solution. No interface or 3rd party tool solutions, please.)
attrib +s | dir /AD /B