Name

path

Synopsis

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 folders—these 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][;path2][;path3][;...]

Examples

C:\>path c:\stuff;d:\tools
C:\>path %path%;c:\stuff;d:\tools
               

Get Windows XP Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.