curena
9/4/2015 - 3:19 PM

Set environment variable in Windows

Set environment variable in Windows

Syntax
      SET variable
      SET variable=string
      SET /A "variable=expression"
      SET "variable="
      SET /P variable=[promptString]
      SET "

Key
   variable    : A new or existing environment variable name e.g. _num
   string      : A text string to assign to the variable.
   expression  : Arithmetic expression