![]() ![]() Let’s say we have to clear variable named TEST that we created earlier. When we have to clear the value of a environment variable, the variable value should be empty. To check the value of TEST variable, we say echo %TEST% Step-3 : To verify the changes, Close and open the command prompt and type echo %VariableName% In such cases the values should be separated by semicolon.įor User Environment Variable : setx " "įor Example, if we want the variable TEST to hold two values C:\Users\,C:\Test\ we say, setx TEST "C:\Users\ C\Test\"įor System Environment Variable : setx " " -mįor Example, if we want the variable TESTsys to hold two values C:\Users\,C:\Windows\ we say, setx TESTsys "C:\Users\ C\Windows\" -m 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 ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |