72 MS-DOS User's Reference
Path Path
Purpose:
Sets a command search path.
Syntax:
path
[drive:
][patb
][
j[
drive: ][patb ]
...
]
or
path
j
Comments:
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
\ user
\pete
directory
for
external commands, you
would
simply type
the
path
command
followed
by
the
directory name \ user
\pete.
Then, until you exit
MS-DOS
or
set
another
path,
MS-DOS
searches
the
\user\pete
direc-
tory
for external commands.
You can tell
MS-DOS
to
search
more
than
one
path
by specifying
several paths separated
by
semicolons. If you use
the
path
com-
mand
without
options, it prints
the
current
path. And
if
you use
the
following command,
MS-DOS
sets
the
NUL
path:
path
j
[
[
[
[
[
[
[
[
[
This command means that
MS-DOS
searches only
the
working direc- [
Setting a search path
tory for external commands.
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\petejb:\user\emilyj\bin
MS-DOS
searches
the
paths in
the
order
specified in
the
path
command.
[
[
[
[
[
[