set environment/system variables in windows OS

Method 1 –

In Windows 7 OSmycompRight


When we update existing variables, then we need to append value instead of overwriting existing value, better to add “;” at the end and append the value.

Method 2 –

Through command prompt,

To update user variable, search for command prompt and right click “Run as administrator”

To update under system variable section, you need to have administrator privileges.