Difference between revisions of "Windows Path Enviroment"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Display environment variables == | == Display environment variables == | ||
<syntaxhighlightjs lang="powershell"> | |||
set | more | |||
PATH | |||
</syntaxhighlightjs> | |||
== Set the system PATH == | == Set the system PATH == | ||
setx path "%path%;c:\directoryPath" | setx path "%path%;c:\directoryPath" |
Revision as of 15:05, 29 April 2019
Display environment variables
<syntaxhighlightjs lang="powershell"> set | more PATH </syntaxhighlightjs>
Set the system PATH
setx path "%path%;c:\directoryPath"
set vs setx
set
sets an environment variable until the end of the current command prompt session, or until you set the variable to a different valuesetx
sets an environment variable in both the current command shell and all command shells that you create after running the command. It does not affect other command shells that are already running at the time you run the command.