Is there any easy way or shortcut to set PATH on Windows?

I found it's not easy to set PATH on Windows. I need to click many times to find the place.

  1. opening up the system properties (WinKey + Pause)
  2. selecting the “Advanced” tab
  3. click the “Environment Variables” button
  4. then adding or selecting the PATH variable

Look it takes so many clicks. Is there any easy way or shortcut to do this?

I know there are commands for this () but I can't remember...

1

4 Answers

(via How to Set User Environment Variable Using Setx in Windows 10)

To open the Environment Variables dialog directly, create a desktop shortcut to:

rundll32 sysdm.cpl,EditEnvironmentVariables

To alter System variables, the shortcut has to be run elevated.

1

Solutions I use:

  • Typing systempropertiesadvanced Enter into the Start menu to avoid some clicks
  • Using Rapid Environment Editor (3rd party software)
6

On Windows 7, you can type "env" into the Start Menu Run dialog and select the first link that appears (Edit environment variables for your account). This will take you directly to the Environment Variables dialog. Unfortunately, you will still have to select the variable(s) to edit manually.

As a small addendum, if you simply type "env" (again, in the Run dialog above) and hit Enter, the Environment Variables dialog box will appear without needing to select the first link.

1

I used to just winkey+r then set PATH=C:\wherever\

Can't remember if it uses quotes only on spaces or all the time.. I used to have to use this with adb.exe

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like