Any user working on command prompt or batch scripts will be well aware of environment variables because of the repetition of a value again and again. Every environment variable has two parameters i.e. name and value. So, you can edit or create your own environment variables in order to ease the work for yourself. So, in this guide, I will discuss about the way to edit environment variables in Windows 10.

Editing Environment Variables:

In order to edit environment variables, follow the steps below to access them. Navigating to Environment Variables Using Command Prompt:

  1. If you want to have access to both the variables i.e. user and system variables, then, open an elevated Command Prompt by right clicking over the Start Menu icon and selecting Command Prompt (Admin) from the list.
  2. While inside the command prompt, type or copy/paste the following command stated below. You can paste the command by right clicking inside Command prompt and selecting Paste. Hit the Enter key to execute the command.

Command:    rundll32.exe sysdm.cpl,EditEnvironmentVariables 3. After hitting Enter, Environment Variables window will pop-up with a section for User variables and another section for System variables.

  1. In order to edit a variable, select that variable and press the Edit button to change the Name or Press OK afterwards.

  2. If you want to create a new environment variable for yourself, then, click over the New button and type the Name and Value for that particular variable followed by the OK

  1. Press Win+ X keys on the keyboard and select System from the list.

  2. Inside the System window, click on Advanced system settings located at the left pane.

  3. Inside the advanced system settings, click on the Environment Variables button at the bottom and do follow the same procedure to edit environment variables as described above.

How to Set bash Variables to Random NumbersHow to Disable / Enable Windows Recovery Environment on Windows 10?Fix: Could not Find the Recovery Environment on Windows 10How to Use md5sum in a Windows Command Prompt Environment How to edit environment variables in Windows 10 - 45How to edit environment variables in Windows 10 - 12How to edit environment variables in Windows 10 - 55How to edit environment variables in Windows 10 - 86How to edit environment variables in Windows 10 - 70How to edit environment variables in Windows 10 - 38