In MS-DOS file management, which command creates a new directory (folder) at the specified path?

Difficulty: Easy

Correct Answer: MD

Explanation:


Introduction / Context:
Organizing files in DOS requires creating directories to group related documents and programs. DOS provides a concise command to create a directory, with an equivalent long form for users who prefer explicit names.


Given Data / Assumptions:

  • User has write permissions to the target path.
  • Path may be absolute (for example, C:\DATA) or relative.
  • No conflicting file or directory name exists at the destination.


Concept / Approach:
The MD command (alias MKDIR) creates a new directory entry in the filesystem. If intermediate directories do not exist, classic DOS requires creating them one level at a time. The DIR command lists contents; it does not create folders. MAKE and DD are not standard DOS commands for directory creation.


Step-by-Step Solution:

1) To create C:\WORK, type: MD C:\WORK and press Enter.2) Verify with DIR C:\ to confirm the new directory appears.3) Change into it using CD C:\WORK as needed.4) Repeat for subfolders (for example, MD C:\WORK\LOGS).


Verification / Alternative check:
Attempting to run MKDIR C:\WORK performs the same action, demonstrating the MD/MKDIR equivalence.


Why Other Options Are Wrong:

  • DIR: Displays contents only.
  • MAKE / DD: Not DOS directory-creation commands.
  • None of the above: Incorrect because MD is correct.


Common Pitfalls:
Including trailing spaces or reserved device names (for example, PRN) that can cause errors.


Final Answer:
MD

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion