220-802 · Question #1003
An administrator would like a file to retain its archrival bit status, but wishes to store it on another drive than the one it was created on. Which of the following commands would BEST suit this…
The correct answer is C. xcopy /a. The xcopy /a command copies files that have the archive attribute set AND preserves that archive bit on the destination. The plain copy command transfers files but does not preserve the archive attribute. dir /a only lists files with the archive attribute - it does not copy…
Question
An administrator would like a file to retain its archrival bit status, but wishes to store it on another drive than the one it was created on. Which of the following commands would BEST suit this need?
Options
- Adir /a
- Bcopy
- Cxcopy /a
- Dattrib +a
How the community answered
(48 responses)- A4% (2)
- B2% (1)
- C92% (44)
- D2% (1)
Explanation
The xcopy /a command copies files that have the archive attribute set AND preserves that archive bit on the destination. The plain copy command transfers files but does not preserve the archive attribute. dir /a only lists files with the archive attribute - it does not copy anything. attrib +a sets the archive bit on an existing file but does not move or copy it to another drive. The /a switch on xcopy specifically targets and preserves archived files, making it the correct choice when both copying across drives and maintaining archive bit status are required.
Topics
Community Discussion
No community discussion yet for this question.