HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

path — Display or set the search path for executable files. More information: <https://learn.microsoft.com/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandpathsearchclisetdisplay
windows

Problem

How to use the path command: Display or set the search path for executable files. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/path>.

Solution

path — Display or set the search path for executable files. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/path>.

Display the current path:
path


Set the path to one or more semicolon-separated directories:
path {{path\to\directory1 path\to\directory2 ...}}


Append a new directory to the original path:
path {{path\to\directory}};%path%


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

Code Snippets

Display the current path

path

Set the path to one or more semicolon-separated directories

path {{path\to\directory1 path\to\directory2 ...}}

Append a new directory to the original path

path {{path\to\directory}};%path%

Set command prompt to only search the current directory for executables

path ;

Context

tldr-pages: windows/path

Revisions (0)

No revisions yet.