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.
  1. P

    Windows 7 How to set an environment variable PERMANENT from cmdline?

    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...
Back
Top