You need to copy all files from C:\Data to D:\Archive while preserving the entire directory tree-including empty subfolders. All hidden and system files must be copied as well, but you do not want any existing files in D:\Archive to be deleted. Which Robocopy command accomplishes this with the fewest necessary switches?
The /E switch copies subdirectories including empty ones. Robocopy copies hidden and system files by default, so no extra switch is required.
A. /S copies subdirectories except empty ones, so it could miss empty folders.
C. /MIR mirrors the source, which would delete files in the destination that are not in the source-an undesired side effect here.
D. /S /XA:HS would copy non-empty subdirectories but excludes hidden (H) and system (S) files.
Therefore, robocopy C:\Data D:\Archive /E is the correct choice.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the `/E` switch do in the `xcopy` command?
Open an interactive chat with Bash
What types of files are considered hidden and system files?
Open an interactive chat with Bash
How does `xcopy` differ from other copy commands like `copy` or `robocopy`?