Difficulty: Easy
Correct Answer: PAUSE
Explanation:
Introduction / Context:Batch files in DOS execute sequentially. Sometimes you need to halt processing to read messages or confirm settings before proceeding. DOS provides a built-in command to wait for user input in batch scripts such as AUTOEXEC.BAT.
Given Data / Assumptions:
Concept / Approach:The PAUSE command displays “Press any key to continue . . .” and waits for a key press. It is an internal command (part of COMMAND.COM). There is no native HALT or WAIT command in classic DOS that accepts seconds; timing delays typically require external tools (e.g., CHOICE with /T in later DOS/Windows) or looping tricks.
Step-by-Step Solution:
Identify the need: stop, display a prompt, continue when user is ready.Recall the correct internal command: PAUSE.Insert PAUSE in the desired location in AUTOEXEC.BAT.Verification / Alternative check:Run the batch file and observe that execution stops with the standard prompt until a key is pressed.
Why Other Options Are Wrong:HALT / WAIT x.xx seconds / WAIT until Files="x": not standard DOS batch commands. None of the above: incorrect because PAUSE exists and is intended for this use.
Common Pitfalls:Expecting a built-in timed delay; forgetting PAUSE pauses indefinitely until keypress.
Final Answer:PAUSE
Discussion & Comments