Difficulty: Easy
Correct Answer: ATTRIB +R CBT.EXE
Explanation:
Introduction / Context:
DOS file attributes control visibility and mutability. Setting the read-only attribute prevents edits and overwrites by many utilities. Technicians frequently toggle attributes to protect executables and configuration files.
Given Data / Assumptions:
Concept / Approach:
ATTRIB accepts +R to add the read-only attribute and -R to remove it. Once set, typical copy or editor operations will prompt or fail to overwrite unless attributes are cleared or forced by specialized tools.
Step-by-Step Solution:
Verification / Alternative check:
Issue ATTRIB CBT.EXE after the command to display current attributes and confirm the R flag is set. Attempting to overwrite will now typically produce an access denied or confirmation prompt.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting to remove the attribute when updating the file (use ATTRIB -R CBT.EXE). Also, note that some installers override attributes; verify after updates.
Final Answer:
ATTRIB +R CBT.EXE
Discussion & Comments