Q2. What is the command syntax for assigning "Hidden" attribute to file c:\myfile?
A. ATTRIB +R C:\MYFILE
B. ATTRIB +H C:\MYFILE
C. ATTRIB -H C:\MYFILE
D. ATTRIB H C:\MYFILE
Correct Answer: B
Explanation:
DOS allows you to set the following attributes using ATTRIB command:
1. System
2. Hidden
3. Read-only
4. Archive
'+' sets and attribute
'-' clears an attribute
Correct syntax is
ATTRIB [+R -R] [+A -A] [+S -S] [+H -H] [PATH] [FILESPEC] [/S]
/s Processes files in all directories in the specified path.
Disclaimer: Simulationexams.com is not affiliated with any certification vendor, and Sim-Ex™ Practice Exams are written independently by SimulationExams.com and not affiliated or authorized by respective certification providers. Sim-Ex™ is a trade mark of SimulationExams.com or entity representing Simulationexams.com.A+™ is a trademark of CompTIA® organization.