Discussion:
4nt7: attrib /a:d
(too old to reply)
Caesar Romano
2009-05-06 14:57:53 UTC
Permalink
Re: 4NT 7.01.370 Windows XP [Version 5.1.2600]

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
Steve Fabian
2009-05-06 15:43:15 UTC
Permalink
Caesar Romano wrote:
| Re: 4NT 7.01.370 Windows XP [Version 5.1.2600]
|
| 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?

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
Richard Bonner
2009-06-30 16:49:50 UTC
Permalink
Post by Steve Fabian
| Re: 4NT 7.01.370 Windows XP [Version 5.1.2600]
|
| 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?
(Snip)
Post by Steve Fabian
--
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/

Loading...