Set path environment variable through cmd

Set the value of the Windows system path variable with CMD

Method 1

wmic ENVIRONMENT create name="Variable",username="<system>",VariableValue="Variable"

Method 2

setx path "%path%;New Path"

Method 3

set path=%path%;New Path

Read More: