This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Define the name and value of the environment variable | |
set "MY_VARIABLE=MY_VALUE" | |
:: Set the environment variable using setx | |
setx MY_VARIABLE "%MY_VARIABLE%" | |
:: Display a message indicating that the variable has been set | |
echo Environment variable MY_VARIABLE set to %MY_VARIABLE% |