Set an environment variable for the current user

setx

  • Sets persistent environment variables.
    More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/setx>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

setx {{variable}} {{value}}

click the source code to copy