DOS Learning Note (3) attrib command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.