nerdexam
CompTIA

220-802 · Question #697

A user needs to replicate a large directory containing folders and files from one drive to another. It also contains several empty folders needed for future growth. Which of the following commands…

The correct answer is D. XCOPY /E. XCOPY /E copies a directory tree including all subdirectories and, critically, empty subdirectories. The /E switch is specifically designed to include empty folders, which is the key requirement in this scenario. XCOPY without /E would skip empty directories. COPY /A is for…

Hardware

Question

A user needs to replicate a large directory containing folders and files from one drive to another. It also contains several empty folders needed for future growth. Which of the following commands should a technician use in order to accomplish this task?

Options

  • AATTRIB /S
  • BRD /S
  • CCOPY /A
  • DXCOPY /E

How the community answered

(39 responses)
  • A
    3% (1)
  • C
    5% (2)
  • D
    92% (36)

Explanation

XCOPY /E copies a directory tree including all subdirectories and, critically, empty subdirectories. The /E switch is specifically designed to include empty folders, which is the key requirement in this scenario. XCOPY without /E would skip empty directories. COPY /A is for file copying with ASCII text handling and cannot replicate directory structures. ATTRIB /S changes file attributes recursively but does not copy. RD /S removes directories-it is a deletion command, not a copy command.

Topics

#XCOPY command#directory replication#command line tools#file system

Community Discussion

No community discussion yet for this question.

Full 220-802 Practice