PrepAway - Latest Free Exam Questions & Answers

Which of the following commands will he use to accomplish this task?

Mark has a file named DAT
A.TXT on the C. drive on his computer. He wants to set the hidden attribute on the file. Which of the
following
commands will he use to accomplish this task?

PrepAway - Latest Free Exam Questions & Answers

A.
ATTRIB +h DATA.TXT

B.
ATTRIB -h DATA.TXT

C.
ATTRIB -A DATA.TXT

D.
ATTRIB /hidden DATA.TXT

Explanation:

In order to set the hidden attribute on the file, Mark will have to run the following command on the
command prompt:
ATTRIB +h DATA.TXT
Where:
+ is used for setting attribute.
h is used for hidden attribute.
DATA.TXT is the file name.
Answer option B is incorrect. This is used to clear the hidden attribute from a file.
Answer option D is incorrect. The /hidden is not a valid switch for the ATTRIB command.
Answer option C is incorrect. The ATTRIB -A DATA.TXT command will be used to clear the archive
attribute from a file.
Reference: “http://www.computerhope.com/attribhl.htm”


Leave a Reply