In MS-DOS, which command or option suppresses the confirmation prompt when deleting a directory and its contents?

Difficulty: Medium

Correct Answer: None of the above

Explanation:


Introduction / Context:
Deleting directories in DOS often requires care to avoid accidental data loss. The DELTREE command removes a directory tree, and DOS normally asks for confirmation. There is a specific switch to bypass that prompt, which technicians used in scripts or automated maintenance tasks.


Given Data / Assumptions:

  • The goal is to delete a directory without a confirmation prompt.
  • We are constrained to choose among the listed options.
  • Accurate DOS syntax matters: only the correct switch actually suppresses the prompt.


Concept / Approach:

In DOS, the correct syntax to suppress confirmation is DELTREE /Y . The /Y switch answers "yes" to all prompts automatically. None of the provided options include /Y. DELTREE alone still prompts. DELTREE/F is not a standard switch. DEL . and ERASE . affect files, not directories recursively, and still may prompt depending on settings.


Step-by-Step Solution:

Recall the correct syntax: DELTREE /Y.Compare to listed options and note the absence of /Y.Confirm that none of the options suppress the prompt as required.Select 'None of the above' as the only accurate choice.


Verification / Alternative check:

Microsoft DOS reference confirms /Y as the non-interactive switch for DELTREE. No official /F switch exists for this command in standard MS-DOS.


Why Other Options Are Wrong:

  • DELTREE: prompts for confirmation.
  • DELTREE/F: invalid switch and still would not suppress confirmation.
  • DEL.* / ERASE .: do not remove directories recursively and may still prompt.


Common Pitfalls:

  • Assuming any switch (like /F) applies; DOS command switches vary by command.


Final Answer:

None of the above.

Discussion & Comments

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