Set Environment varaiable
To apply settings to the current user session
The set commands sets the variable but its not persistant after reboot
set [variable_name] “[variable_value]”
The setx command sets the variable that is persistant even after reboot
setx [variable_name] “[variable_value]”
To apply the setting to System wide use the switch /M
setx [variable_name] “[variable_value]” /M
ex:
setx ADSKFLEX_LICENSE_FILE 27001@server-flexlm /M