DOS startup configuration The PATH command that defines executable search paths is usually placed in which startup file?

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:

  • DOS uses CONFIG.SYS for device drivers and system directives.
  • AUTOEXEC.BAT is a batch file executed after DOS loads.
  • We want the standard location for setting the PATH environment variable automatically at each boot.


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:

Open AUTOEXEC.BAT in a text editor.Add a line such as: PATH C:\DOS;C:\UTIL;C:\TOOLSSave and reboot to apply changes automatically.At the prompt, type PATH to verify the configured directories.Adjust order so the most frequently used tools appear earlier for faster resolution.


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

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