How To editing environment settings on Windows 10 or 11

how-to-editing-environment-settings-on-windows-10-or-11

Editing the environment variables on your PC might help you save time in Command Prompt and make your scripts more concise. It also allows you to change where Windows saves some files. Learn how to edit them here.

Environmental Variables Function on Windows 11

Environment variables can be used to point to or set key folders, such as the location of the Windows Temp folder, or they can communicate important information about your PC.

Such as the version of Windows it is running or the number of available CPU cores.

Any programme or script that runs on your computer can read environment variables. Environment variables can be set for individual user accounts or for the entire system.

The Path variable

The Path variable is an important environment variable. Path specifies which folders are searched for executables when a command is executed in a terminal or script.

Consider Notepad: type notepad into Command Prompt and it will launch immediately. If you type chrome, you will get an error message.

Because the Notepad executable is in a folder defined in the Path, but the Chrome executable is not, the issue occurs.

Editing Environment Variables

The user interfaces of Windows 10 and Windows 11 differ slightly, but the essential method of modifying environment variables is the same.

Click the Start button, then type “environment properties” into the search bar and press Enter to configure your environment variables. In the System Properties dialogue box, select “Environment Variables.”

Click on the variable you want to edit, then select “Edit.”

Many environment variables will simply accept a name and a value, such as “Number of processors.” To alter them, simply change the value and then click “OK.”

Adding an environment variable is the same as adding a variable, only you must specify the variable name and value.

If you choose, the variable value can take several values, but they must be separated by semicolons. After you’ve given your variable a name and a value, click “OK.”

To read our blog on “Windows 11, How to schedule automatic recycle bin emptying,” click here

Exit mobile version