In certain cases, the Variable must hold multiple values. It stores the latest value in the variable. The setx command re-assigns the Variable value, every time we run it. In order to modify variable’s value, we have to use setx the same command with new value. For System Environment Variables : setx '' -mįor example, if we want to create a variable TESTsys with the value C:\ we say, setx TESTsys 'C:\' -m