PATH + Searching a Specified PathInstructs DOS to search a specified path for programs not in
the current directory.
VERSION
PC-DOS 2.0+
MS-DOS equivalent: PATH (2.0+)
TYPE
Internal
SYNTAX
PATH [[d:]path[;[d:]path]]
OPTIONS
[d:] Specifies the letter of the drive(s) to
be included in the search path.
path Specifies the directory of path name(s)
to be included in the search path.
; Separates different drive letters and
path names to be included in the PATH
command statement.
PATH allows you to quickly access programs and batch files
that may be stored in other subdirectories, no matter what
directory you are in.
EXAMPLES
PATH C:\BUSINESS\REPORTS;\BUSINESS\INVOICES
instructs DOS to look first in the default subdirectory, then in
C:\BUSINESS\REPORTS, and then in C:\BUSINESS\INVOICES
to find programs or files.
PATH
displays the current subdirectory on the default drive.
BPATH A:\BUSINESS;A:\
instructs DOS to look first in the current subdirectory in drive
B and then in A:\BUSINESS and A:\.
MESSAGE
No path
No path has been defined for DOS to search. Use the PATH command
to specify a path.
UNDO
To reset the search path to no extended search path, enter
PATH ;
Designating a new PATH command supersedes an earlier PATH
command.
NOTE
You must specify each path completely. To have DOS search on
another drive, specify the drive designation.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
AUTOEXEC.BAT File
APPEND Command
CHDIR Command
RMDIR Command
SET Command
TREE Command