PATH(DOS) UNIX System V PATH(DOS)
Name
path - sets a command search path
Syntax
path [drive:][path][;[drive:][path]...]
or
path ;
Description
The path command lets you tell MS-DOS which directories to
search for external commands after it searches your working
directory. The default value is no path.
For instance, to tell MS-DOS to search the \bin directory
for external commands, you would simply enter path followed
by the directory name \bin. Then, until you exit MS-DOS or
set another path, MS-DOS searches the \bin directory for
external commands.
You can tell MS-DOS to search more than one path by
specifying several paths separated by semicolons. If you
use path without options, it prints the current path. And
if you use the following command, MS-DOS sets the NUL path:
path ;
Example
The following command tells MS-DOS to search three
directories to find external commands (the three paths for
these directories are \user\pete, b:\user\emily, and \bin):
path \user\pete;b:\user\emily;\bin
MS-DOS searches the paths in the order specified in path.
Notes
path is an internal command.
PATH(DOS) (printed 8/16/89) PATH(DOS)