answersLogoWhite

0

Attirb command is used to change the attribute of any file of directory. There are following kinds of attributes in DOS:

  • R - Read Only
  • H - Hidden
  • A - Archive
  • S - System

Among all, Archive (A) attributes applies by default as we create any file or directory. System (S) attribute is reserved for the System Files (IO.SYS, MSDOS.SYS, CONFIG.SYS) of MS-DOS. We can apply Read Only or Hidden attributes to any file or directory to make it read only of hidden. The syntax is as follows:

To make file Read Only: attrib +r

To make file Hidden: attrib +h

To remove Read Only attribute: attrib -r

To remove Hidden attribute: attrib -h

Similarly we can set/remove Archive (A) or System (S) attributes to file with +a/-a or +s/-s option.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Write the syntax for find command in dos?

For most DOS commands you can write COMMAND /? and you will be presented with a list of possible choises. eks. FIND /? Regards.


What is the significance of write and talk command in UNIX?

About write Send a message to another user. Syntax write person [ttyname] About talk Talk with other logged in users. Syntax talk person [ttyname]


When you write a program that will run in a GUI environment as opposed to a command line environment?

Some syntax is different.


What is syntax in c?

syntax is the way you write your code in it defines the meaning of keywords & how to write


Write a sample program using ASPNET explaining all the syntax and semantics of the program?

write a sample program using asp.net explaining all the syntax and semantics of the program


How do you use syntax in a sentence?

Syntax- n.- the grammatical arrangement of words in a sentenceExample: When you write a novel, avoid improper format, misspellings, punctuation mistakes, grammar and syntaxmistakes.


I want to learn how to program?

Learning how to write computer programs - is similar to learning a new language. You need to learn the syntax of the programming language, in order to correctly write lines of code. For example - in BASIC, the syntax of an IF/THEN command is... IF {condition 1} THEN do (option 1);ELSE do (option 2).


Is write a FORTRAN command?

Yes. The FORTRAN write command output's data to a file.


What is written in the correct syntax in Excel?

When functions are used, they must follow their designated structure, which is the syntax. If the syntax is not followed, the function will not work. The same is the case if VBA is being used to write code for the worksheet.


What is the correct JavaScript syntax to write Hello World?

document.write("hello world");


What is the set of grammar and rules that specifies how to write instructions for a solution algorithm?

syntax


Sentence for the word syntax?

Syntax- n.- the grammatical arrangement of words in a sentenceExample: When you write a novel, avoid improper format, misspellings, punctuation mistakes, grammar and syntaxmistakes.