Vidyalelo
Computer Science · Q66

Disk Operating System (DOS)

Engineering and GATE · Computer Science · question 66

Q66

Which command is used to provide access to files located in other directories or disks?

A.
Tree
B.
Path
Answer
C.
Dir
D.
Cd

Answer: Option B

Solution

Answer: Option B
Solution:
The Path command in DOS is used to provide access to files located in other directories or disks by specifying a search path.

It allows DOS to locate executables and other files without needing to specify the full path every time.
The PATH environment variable in DOS lists directories where executable files are located.

Tree displays the directory structure in a tree-like format, but it does not provide access to files located in other directories or disks.

Dir lists the contents of the current directory, but it does not provide access to files in other directories or disks.

Cd (Change Directory) is used to change the current directory within the same disk, not to provide access to files on other directories or disks.

Therefore, the correct answer is Option B: Path.