The other day I noticed something I never noticed before. I had a
directory with a System attribute set.
>attrib /a:d *
__S_D________ D:\mydata\webs\dcs
I wanted to remove the "S" attribute but found that the command
>attrib /a:d -s dcs
wouldn't work. Instead I had to use the command
>attrib /a:d -s +d dcs
I've never had to remove the S attribute from a D file before and I
was just wondering about this. Has attrib always required the +d in a
situation like this?
Thanks
The issue is that the /D switch is used to affect directory attributes. I
just tested in the same build as you that the command
*attrib /d -s rst\
successfully removed the S attribute. BTW, I have an alias (as reported by
the WHICH command):
atr is an alias : *attrib/d/e
for that very reason.
--
HTH, Steve
*** Yes, `/D' is required. Otherwise, 4DOS will change the attributes of
all files within the named directory instead of the directory itself.
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/