2.7.28. PATHΒΆ

Help of the DOS Command PATH

Displays or sets a search path for executable files.:

PATH [[drive:]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%


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

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


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