How To Add/Edit Environment Variables in Windows 7

Posted by on May 18th, 2010, in How to and tagged ,

FREE eBook Download - Windows 7: Tips & Tricks

If you are a geek that have experience in Linux, you will know exactly what I’m talking about. If not, environment variables is an essential piece of variables that exists so your system can function correctly. The same applies in Windows, though, normal Windows users don’t need to worry their environment variables. 

Recently, I was looking at some android documentation and try to setup a development environment on my Windows 7. One of the step is to add a directory path into the PATH environment variable, you have to admit Google didn’t put much effort in to the documentation. It says

To install the SDK, simply unpack the starter package to a safe location and then add the location to your PATH.

No explanation on how to do this.

So how exactly are you going to do this ?

To add or edit anything environment variables in your Windows 7 you need to first go to System properties

system_advanced_settings 

Go to “Advanced system settings”

windows_7_enviroment_variablesGo under “Advanced” tab > “Environment Variables …”

add_to_PATH

Go to PATH > double click and add new path into the “variable value” make sure you separate the value with “ ; “

add_new_variables_into_PATH 

Let’s sum up what we just did

PATH is an environment variable that holds all the executable shell commands, when you type some thing in the command prompt it will go through all the path and search for the match of the command line utility name you have just entered.

In short there are tons other environment variables in Windows, if you are interested in how it works feel free to check out the Technet documentation.

Subscribe to W7H Tips & Tricks (Why?)

Email:

  • Pingback: Use Letterpress Invitations To Have A Eco Friendly and Sustainably Green Wedding

  • coffee-turtle

    Thank you for this tips (and this excellent site)!

    I guess Google figured that if someone didn’t know what it meant to add a program’s path to a system’s environment, they shouldn’t be a programmer. ;-)

  • mark

    If you’re tired of the small cumbersome windows in all Windows versions for Environment Variable editting, check out http://www.rapidee.com. It’s a free environment variable editor that takes advantage of real windows capabilities. I’m a user of the app, not the developer.

  • Shah Newaz Alam

    Thanks a lot. This was the information I was searching for. Was stuck on to exactly the same thing, while trying to set up my comp for Android app development.

    • Jonathan

      glad it helped out :P

  • Josh

    You can also type sysdm.cpl in the search line of the Windows button and it will bring up the system properties box. Click on the Advanced tab and then select “Environment Variables”. Everything else is the same. A quicker way for us geeks ;)

  • Calebs

    Can you do this for all users?  Like a computer configuration instead of a profile configuration?