Dos - SETX

About

The setx command will set an environment variable

The setx command Creates or modifies environment variables in the user or system environment. Can set variables based on arguments, regkeys or file input.

More:

setx /?

Example

The following

>setx HOME_PERFTOOL D:\perftool
SUCCESS: Specified value was saved.

will create and set the environment variable HOME_PERFTOOL to the value D:\perftool

Support

The data being saved is truncated to 1024 characters

WARNING: The data being saved is truncated to 1024 characters.
SUCCESS: Specified value was saved.

Just use the Windows - Environment Variable to change it otherwise you need to send WM_SETTINGCHANGE (but it's not possible in DOS)


Powered by ComboStrap