How do I modify system variables?

A. As with user variables, these can be changed using the system control panel applet:

  1. Start the System control panel applet
  2. Select the Environment tab
  3. Under "System Variables" select a variable and its value will be displayed. Modify it in the Value box and click Set.
  4. Once you have made all changes click Apply then OK

Alternatively you can directly edit the registry to make these changes

  1. Start the registry editor
  2. Move to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
  3. Double click on the variable, e.g. Path and edit the value. Once complete click OK
  4. Close the registry editor

A final method from the command line is to use the SET command

C:\> set OS=OS2 DON'T do this :-)

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.