Operating Systems
A technician must create the folder structure C:\Projects\2025\Reports in one step, and none of the three folders exist yet. Which command does this?
Show the answer
Correct answerD. md C:\Projects\2025\Reports
AWhy not this: rmdir removes directories, so it cannot create the structure.
BWhy not this: cd only moves into an existing folder and errors out when the path is absent.
CWhy not this: robocopy copies files between folders and is not the tool for making a new empty path.
DWhy this is right: md creates the directory and any missing parent folders in the path in one command.
The md (mkdir) command creates a directory, and with command extensions enabled it also creates any missing intermediate folders in the path. The cd command only changes the current directory and fails if the path does not exist.