Computer and Software Support


DOS Command Path

Type: Internal (2.0 and later)

Syntax:

PATH;
PATH [d:]path[;][d:]path[...]

Purpose: Sets or displays directories that will be searched for programs not in the current directory.

 

Discussion

PATH tells DOS which directories should be searched for external commands after DOS searches your working directory. DOS searches the paths in the order specified in the PATH command.

If you enter the PATH command without options , the program will display the currently set path designations.

 

Examples

To tell DOS to search for external DOS commands and other executable programs in the PROGRAM directory that is within the root directory on drive C, enter

path c:\program

You can tell DOS to search more than one path by specifying several pathnames separated by semicolons. For example:

path \program;\files\sales;\data2

To reset the path designation so that DOS will search only the current directory, enter

path ;

This page is from http://www.easydos.com. I pasted it on my website to avoid possible broken links. For further help with DOS commands, Check easydos.com out.