Difficulty: Easy
Correct Answer: AUTOEXEC.BAT
Explanation:
Introduction / Context:
The PATH setting tells DOS where to look for executables beyond the current directory. Correctly placing the PATH command ensures utilities and applications run without needing fully qualified paths, streamlining everyday work and troubleshooting sessions.
Given Data / Assumptions:
Concept / Approach:
Environment variables, including PATH, are typically configured in AUTOEXEC.BAT because it is a batch script executed during startup in user context, ideal for initializing variables, launching TSRs, and setting prompt styles. CONFIG.SYS handles low-level drivers and memory managers; it is not the conventional place for the PATH command.
Step-by-Step Solution:
Verification / Alternative check:
Temporarily run PATH from the prompt to test new values. If it works interactively, placing the same line into AUTOEXEC.BAT will persist the setting across reboots.
Why Other Options Are Wrong:
a: CONFIG.SYS configures drivers (for example, DEVICE=) and memory; it is not the standard location for PATH.
b and c: These filenames are nonstandard and not used by DOS for startup.
e: Not applicable because AUTOEXEC.BAT is correct.
Common Pitfalls:
Exceeding environment size limits; forgetting semicolons between paths; setting PATH in the shell only (lost after reboot) rather than in AUTOEXEC.BAT.
Final Answer:
AUTOEXEC.BAT
Discussion & Comments