![]() |
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-12 21:20 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » How do I delete read-only files in a directory? |
| Printable Version 893 / 11 |
| Floor1 changhp | Posted 2003-05-17 00:00 |
| 初级用户 Posts 5 Credits 123 | |
|
After using del *.*, I got the prompt "access denied", and the files were not deleted.
How can files like that be deleted? |
|
| Floor2 如是大师 | Posted 2003-05-18 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
First use attrib to remove their attributes. Then delete them...
|
|
| Floor3 changhp | Posted 2003-05-18 00:00 |
| 初级用户 Posts 5 Credits 123 | |
|
attrib *.* Enter
Is this the correct way to use it? |
|
| Floor4 changhp | Posted 2003-05-18 00:00 |
| 初级用户 Posts 5 Credits 123 | |
|
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 |
|
| Floor5 changhp | Posted 2003-05-18 00:00 |
| 初级用户 Posts 5 Credits 123 | |
|
Sorry, I made a typo above,
it should be attrib -a *.* Enter The system says "file not found - *.*" |
|
| Floor6 Wengier | Posted 2003-05-18 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Looks like there may be a problem on the hard disk. Try SCANDISK.
|
|
| Floor7 MYS | Posted 2003-05-18 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
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. |
|
| Floor8 changhp | Posted 2003-05-19 00:00 |
| 初级用户 Posts 5 Credits 123 | |
|
I've benefited a lot,
thanks for everyone's advice |
|
| Floor9 的 | Posted 2003-07-10 00:00 |
| 初级用户 Posts 8 Credits 137 | |
|
SCANDISK Moderator, what is this??? I'm a newbie Thanks
|
|
| Floor10 MYS | Posted 2003-07-12 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
DOS's own disk checking and repair software
|
|
| Floor11 nouthwolf | Posted 2003-07-16 00:00 |
| 初级用户 Posts 2 Credits 108 | |
|
Thanks for the advice
|
|
| Floor12 如是大师 | Posted 2003-07-16 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
If scandisk doesn't work, then use ndd
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |