China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 19:29
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How do I delete read-only files in a directory? View 890 Replies 11
Original Poster Posted 2003-05-17 00:00 ·  英国 英格兰 大伦敦 伦敦城
初级用户
Credits 123
Posts 5
Joined 2003-05-17 00:00
23-year member
UID 2186
Gender Male
Status Offline
After using del *.*, I got the prompt "access denied", and the files were not deleted.
How can files like that be deleted?
Floor 2 Posted 2003-05-18 00:00 ·  中国 湖北 武汉 江夏区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
First use attrib to remove their attributes. Then delete them...
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-05-18 00:00 ·  英国 英格兰 大伦敦 伦敦城
初级用户
Credits 123
Posts 5
Joined 2003-05-17 00:00
23-year member
UID 2186
Gender Male
Status Offline
attrib *.* Enter
Is this the correct way to use it?
Floor 4 Posted 2003-05-18 00:00 ·  英国 英格兰 大伦敦 伦敦城
初级用户
Credits 123
Posts 5
Joined 2003-05-17 00:00
23-year member
UID 2186
Gender Male
Status Offline
The actual situation is this: all the filenames in one of my folders are garbled, and the computer can't find the files. When I use del *.* to delete them, the system says "access denied". I don't know how to deal with this situation.
Please give me some advice, experts.
Thanks
Floor 5 Posted 2003-05-18 00:00 ·  英国 英格兰 大伦敦 伦敦城
初级用户
Credits 123
Posts 5
Joined 2003-05-17 00:00
23-year member
UID 2186
Gender Male
Status Offline
Sorry, I made a typo above,
it should be attrib -a *.* Enter
The system says "file not found - *.*"
Floor 6 Posted 2003-05-18 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Looks like there may be a problem on the hard disk. Try SCANDISK.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 7 Posted 2003-05-18 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
attrib +r +s +h *.* adds the read-only, system, and hidden attributes to files,
attrib -r -s -h *.* removes the read-only, system, and hidden attributes from files.
Or use deltree *.*; it can directly delete files with any attributes. XDEL or NC, PCTOOLS, etc. can also do it.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 8 Posted 2003-05-19 00:00 ·  英国
初级用户
Credits 123
Posts 5
Joined 2003-05-17 00:00
23-year member
UID 2186
Gender Male
Status Offline
I've benefited a lot,
thanks for everyone's advice
Floor 9 Posted 2003-07-10 00:00 ·  中国 广西 南宁 电信
初级用户
Credits 137
Posts 8
Joined 2003-07-08 00:00
23-year member
UID 6597
Gender Male
Status Offline
SCANDISK Moderator, what is this??? I'm a newbie Thanks
Floor 10 Posted 2003-07-12 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
DOS's own disk checking and repair software
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 11 Posted 2003-07-16 00:00 ·  中国 黑龙江 大庆 联通
初级用户
Credits 108
Posts 2
Joined 2003-07-16 00:00
23-year member
UID 7010
Gender Male
Status Offline
Thanks for the advice
Floor 12 Posted 2003-07-16 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
If scandisk doesn't work, then use ndd
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Forum Jump: