I found it's not easy to set PATH on Windows. I need to click many times to find the place.
- opening up the system properties (WinKey + Pause)
- selecting the “Advanced” tab
- click the “Environment Variables” button
- 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...
14 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.
1Solutions I use:
- Typing
systempropertiesadvancedEnter into the Start menu to avoid some clicks - Using Rapid Environment Editor (3rd party software)
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.
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