You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
set variable
About this tag
Discussions about setting environment variables permanently from the command line in Windows. Topics include using the `setx` command to set variables for a user or system-wide, editing the registry directly via `reg add`, and understanding the difference between temporary `set` and permanent `setx`. Users seek methods to avoid the GUI and automate variable configuration for scripting or deployment.
If I open a CmdPrompt and type
set myvar=foobar
then this environment variable is set only for the time the CmdPrompt exists and is only visible INSIDE the CmdPrompt.
How do I set such an environemnt variable from CmdPrompt (!) but permanently (forever) for
- a certain user
- whole...