中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 16:26
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » How to change file attributes under DOS?
Printable Version  1,226 / 10
Floor1 jjjjj162118 Posted 2004-04-17 00:00
中级用户 Posts 40 Credits 268
Experts, under DOS how do you remove the read-only attribute from a text file? How do you hide a file?
Floor2 pansyleo Posted 2004-04-17 00:00
初级用户 Posts 1 Credits 105
Use the ATTRIB command.
For example, ATTRIB +/-R +/-H followed by the file
+ and - mean add and remove R is the read-only attribute H is the hidden attribute
You can also type ATTRIB/? to see its help
Floor3 jjjjj162118 Posted 2004-04-20 00:00
中级用户 Posts 40 Credits 268
Many thanks!
I've learned quite a bit.
----------------------------------------------------------------------
To err is human! Hehe.
Floor4 jjjjj162118 Posted 2004-04-24 00:00
中级用户 Posts 40 Credits 268
I want to change the read-only attribute of msdos.sys under DOS, but the screen shows Not resetting system file c:\msdos.sys
Why is that?
Floor5 Michael Posted 2004-04-24 00:00
钻石会员 Posts 3,041 Credits 10,056
Do it like this
attrib msdos.sys -r -s -h
Then add whatever attributes you want.
Floor6 bush Posted 2004-04-26 00:00
银牌会员 Posts 730 Credits 2,165
First use attrib msdos.sys -s to remove the system attribute
Floor7 jjjjj162118 Posted 2004-05-03 00:00
中级用户 Posts 40 Credits 268
It doesn't work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
help!!!!!!!!!!!!!!!!
Floor8 aria Posted 2004-05-04 00:00
高级用户 Posts 243 Credits 924
What comrade Michael said is right, I just tried it too
Floor9 龙王 Posted 2004-05-04 00:00
银牌会员 Posts 334 Credits 1,186
The following is quoted from Michael's post on 2004-4-24 22:37:06:
Do it like this
attrib msdos.sys -r -s -h
Then add whatever attributes you want.

You got it backwards
It should be

attrib -r -s -h msdos.sys
Floor10 ycxct Posted 2004-05-09 00:00
初级用户 Posts 3 Credits 113
The following is quoted from Dragon King's post on 2004-5-4 下午 03:03:54:
The following is quoted from Michael's post on 2004-4-24 22:37:06:
Do it like this
 attrib msdos.sys -r -s -h
 Then add whatever attributes you want.

You got it backwards
It should be

attrib -r -s -h msdos.sys


Isn't it the same?
Floor11 jjjjj162118 Posted 2004-05-16 00:00
中级用户 Posts 40 Credits 268
I found a way: attrib -h -r -s msdos.sys
----------------------------------------------
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023