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-06-30 07:19
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Why does it say /s/d is an invalid switch??? View 1,019 Replies 4
Original Poster Posted 2006-05-07 20:05 ·  中国 山西 太原 联通
新手上路
Credits 16
Posts 4
Joined 2006-04-14 05:57
20-year member
UID 53806
Gender Male
Status Offline
I'm a newbie, and I've run into the following confusion!!!

I was under Windows cmd, trying to remove the read-only attribute from a folder. The command I entered was:

attrib -r *.* /s/d

Why does it say /s/d is an invalid switch???

[ Last edited by dingyuewen on 2006-5-7 at 20:30 ]
Floor 2 Posted 2006-05-07 21:33 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Add a space between /s and /d.
简单就是美
Floor 3 Posted 2006-05-07 22:03 ·  中国 山西 太原 联通
新手上路
Credits 16
Posts 4
Joined 2006-04-14 05:57
20-year member
UID 53806
Gender Male
Status Offline
Oh, thanks. I didn't know there had to be a space in between!!!

Many thanks for the advice!!!
Floor 4 Posted 2006-05-08 14:29 ·  中国 四川 绵阳 电信
高级用户
★★
Credits 587
Posts 282
Joined 2006-04-10 03:40
20-year member
UID 53599
Gender Male
Status Offline
In XP, there must be spaces between the command and the switches, and between one switch and another.
Floor 5 Posted 2006-05-08 15:20 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Forum Jump: