Tuesday, February 4, 2014

Adding a folder to the PATH (Windows)

The PATH variable in Windows is the list of the folders you can have directly access to their files in command line.  They are separated by a semicolon (;) and actually you can have to PATH variables, one for the user and an other for the system, but in the end they are merged.


  1. Press [Windows] + [Pause] keys
  2. Click on the "Advanced" tab
  3. Click on the "Environment Variables" button
  4. Choose the scope's level : "User variables for xyz" or "System variables" and select the PATH variable
  5. Click on "Edit" button
  6. In the value's field, go to the end of the current value and add a semicolon if there's not already one, then add the path to the folder you want to add, ex.: "%SystemRoot%\system32;C:\dev\Java\jdk1.7.0_51\bin".  If you want to use an other environment variable's value, simply specify the name of the value surrounded by the percent character (%), ex.: "%SystemRoot%\system32;%JAVA_HOME%\bin" would have the same result if the JAVA_HOME variable contain the value "C:\dev\Java\jdk1.7.0_51".
  7. Click on the "OK" button
  8. Click on the "OK" button
  9. Click on the "OK" button

The path "C:\dev\Java\jdk1.7.0_51\bin" is now declared in the PATH.

No comments:

Post a Comment