5.1.7.28. PATHΒΆ

Help of the DOS Command PATH

Displays or sets a search path for executable files.:

PATH [[drive:]path[;...][;%PATH%]
PATH ;

Type PATH ; to clear all search-path settings and direct cmd.exe to search only in the current directory. Type PATH without parameters to display the current path. Including %PATH% in the new path setting causes the old path to be appended to the new setting. e.g.:

SET PATH=C:\some\new\priority\dir;%PATH%

OR:

SET PATH=%PATH%;C:\some\new\fallback\dir;

As you can imagine, priority dir will take precedence and fallback dir would not.

Note

Above text is generated from DOS/Windows command help and re-formmatted for PDF/HTML View.