How to Edit the Environment PATH – Windows 7
Most of the time you find yourself in a situation where you have to add a PATH for your newly installed program to be able to run globally on your dos prompt. Take an example of the Erlang OTP installation, before you add the path to its binary directory “bin” you can’t run it from anywhere on the dos prompt:
To be able to achieve this, you need to add the PATH to your erlang binary onto your environment PATH so that the command “erl” can be visible from anywhere:
Find out the PATH to your erlang binary folder: C:\Program Files\erl5.6.5\bin\ and copy this path.
Start > Computer (right click) > Properties > Advanced System Settings >
Click - Environment Variables (bottom tab)
Select PATH and click edit,
In the “Variable Value”, append the PATH to erlang. Note that the PATHs are separated by a semicolon. Then click OK.
C:\Program Files\OpenVPN\bin;C:\Program Files\Google\google_appengine\;C:\Program Files\erl5.6.5\bin\
Click ok to close the open windows. You are now ready to run your erlang shell from any directory in your dos prompt.
Eshell V5.6.5 (abort with ^G)