Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

4nt7: attrib /a:d

5 views
Skip to first unread message

Caesar Romano

unread,
May 6, 2009, 10:57:53 AM5/6/09
to
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

unread,
May 6, 2009, 11:43:15 AM5/6/09
to

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

unread,
Jun 30, 2009, 12:49:50 PM6/30/09
to
Steve Fabian (ESFa...@comcast.net) wrote:
> 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?
(Snip)
> --
> 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/

0 new messages