path |
When you type an executable filename at the command prompt (as opposed to an internal DOS command), Windows starts by looking in the current directory for a file that matches. If no matching file is found, Windows then looks in a series of other foldersthese folders are known collectively as the path , or the command search path. The path statement is used to define these additional directories, and is used as follows :
path [ path1 ][; path 2][; path 3][;...]
C:\> path c:\stuff;d:\tools C:\> path %path%;c:\stuff;d:\tools