Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Edit Environment Variables for Your Windows Account

In this article, we will discuss the importance of editing environment variables for your Windows account and provide step-by-step instructions on how to do it. Environment variables are a set of dynamic values that can affect the behavior of various programs and processes on your computer. By editing these variables, you can customize your Windows environment to better suit your needs and preferences.


Examples:
1. To edit environment variables for your Windows account, follow these steps:



  • Press the Windows key + R to open the Run dialog box.

  • Type "sysdm.cpl" and press Enter to open the System Properties window.

  • In the System Properties window, click on the "Advanced" tab.

  • Click on the "Environment Variables" button.

  • In the Environment Variables window, you will see two sections: User variables and System variables.

  • To edit a user variable, select it from the list and click on the "Edit" button.

  • To add a new user variable, click on the "New" button.

  • In the Edit Environment Variable window, enter the Variable name and Variable value.

  • Click "OK" to save the changes.

  • To edit a system variable, follow the same steps as above, but make sure to click on the "Edit" button in the System variables section.


2. Another way to edit environment variables is by using the Command Prompt:



  • Open the Command Prompt by pressing the Windows key + R, typing "cmd", and pressing Enter.

  • To view the current environment variables, type "set" and press Enter.

  • To edit a user variable, use the command "setx VARIABLE_NAME VARIABLE_VALUE".

  • To edit a system variable, use the command "setx VARIABLE_NAME VARIABLE_VALUE /M".

  • For example, to add a new user variable called "MY_VAR" with the value "Hello World", type "setx MY_VAR "Hello World"" and press Enter.


To share Download PDF