nerdexam
CompTIA

FC0-U61 · Question #357

Which of the following switches is used with the XCOPY command to copy directories and subdirectories, including empty directories?

The correct answer is D. /e. The /E switch for the XCOPY command is used to copy directories and subdirectories, including any that are empty, from a source to a destination.

IT Concepts and Terminology

Question

Which of the following switches is used with the XCOPY command to copy directories and subdirectories, including empty directories?

Options

  • A/q
  • B/o
  • C/s
  • D/e

How the community answered

(48 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    2% (1)
  • D
    92% (44)

Why each option

The /E switch for the XCOPY command is used to copy directories and subdirectories, including any that are empty, from a source to a destination.

A/q

The /Q switch suppresses the display of XCOPY messages, not affecting directory copying.

B/o

The /O switch copies file ownership and ACL information, not related to copying empty directories.

C/s

The /S switch copies directories and subdirectories but excludes empty ones, which does not meet the requirement to include empty directories.

D/eCorrect

The /E switch with the XCOPY command copies directories and subdirectories, including empty ones. This is crucial when needing to replicate a complete directory structure without omitting any folders.

Concept tested: XCOPY command switches

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy

Topics

#XCOPY command#command line utilities#file management#directory structure

Community Discussion

No community discussion yet for this question.

Full FC0-U61 Practice