2018-07-02 09:18:10 +01:00
|
|
|
# path
|
|
|
|
|
|
|
|
> Display or set the search path for executable files.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/path>.
|
2018-07-02 09:18:10 +01:00
|
|
|
|
|
|
|
- Display the current path:
|
|
|
|
|
|
|
|
`path`
|
|
|
|
|
|
|
|
- Set the path to one or more semicolon-separated directories:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`path {{path\to\directory1 path\to\directory2 ...}}`
|
2018-07-02 09:18:10 +01:00
|
|
|
|
|
|
|
- Append a new directory to the original path:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`path {{path\to\directory}};%path%`
|
2018-07-02 09:18:10 +01:00
|
|
|
|
|
|
|
- Set command prompt to only search the current directory for executables:
|
|
|
|
|
|
|
|
`path ;`
|