Skip to main content

Display or set the search path for executable files in Windows.

:: To display the current path:
path

:: To set the path to one or more semicolon-separated directories:
path <path/to/directory(s)>

:: To append a new directory to the original path:
path <path/to/directory>;%path%

:: To set command prompt to only search the current directory for executables:
path ;