![]() |
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-15 12:27 |
47,813 topics / 349,903 posts / today 1 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » [Discussion]The DOS command attrib /s /d cannot work on subfolders of the specified folder |
| Printable Version 2,033 / 4 |
| Floor1 lzbow | Posted 2010-03-11 12:36 |
| 初级用户 Posts 13 Credits 23 | |
|
In the root directory bat
@echo off mkdir \a\b\c attrib +s +h +r a /s /d Why does the folder a have an effect, but the subfolders of a are not affected? [ Last edited by lzbow on 2010-3-11 at 12:37 ] |
|
| Floor2 limetree | Posted 2010-03-13 20:05 |
| 新手上路 Posts 7 Credits 13 | |
|
Are you running this command under Windows or under pure DOS?
|
|
| Floor3 systeminfo | Posted 2010-07-08 17:20 |
| 初级用户 Posts 13 Credits 24 | |
|
It is likely that the priority of the /s option is higher than that of /d.
|
|
| Floor4 lovelymorning | Posted 2010-07-22 14:20 |
| 初级用户 Posts 72 Credits 131 | |
|
/S processes matching files in the current folder and all its subfolders.
/D also processes folders. It seems the original poster still doesn't understand the functions of these two parameters... mkdir \a\a\a attrib +s +h +r a /s /d Go and check the result... |
|
| Floor5 lovelymorning | Posted 2010-07-22 14:23 |
| 初级用户 Posts 72 Credits 131 | |
|
mkdir \a\a
cd.>\a\a\a attrib +s +h +r a /s /d Let's look at the effect of this... Probably, you'll understand the meaning of /s /d... |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |