I've been groping today and yesterday. Why this command doesn't change the properties of the folder,
Because I try to use attrib +r/s to modify subfolders, it is useless to find out, and then if you enter
Attrib +R/D also hint that d/a needs to be with the/s switch together to be effective, so I tried the next
attrib +R/S/D still hint invalid switch, I, what's going on, what's the situation.
Then Baidu, read the next and I write almost ah, eh? And look at the seemingly empty space.
I changed the next attrib +r/s/d i go, this is good, summed up the DOS command as far as possible or normative,
See the DOS do not distinguish between the letter case and so on the thing that the language should be very casual,
In particular, the dir command can be written directly dir/a/s/p do not need a space with dir/a/s/p an effect,
Think,,, alas, so the back still try to follow the norms, but, it makes perfect.
Write more and write better. Yes, well, I think so.
In addition, a folder with spaces in the file directory is used as a parameter, which needs to be added "", for example
Program Files if you need the dir command, you need to
Dir "program Files", of course, here the name can be arbitrarily sized. so I think, after writing the program,
Do you use quotes to extend the path?
DOS Learning Note (3) attrib command