Some programs will not automatically add to the System Path variables but will let users edit or add to the path so that the program can function correctly. The System PATH variable is one of the most used variables in Windows. It allows users to run any executables that are located inside the paths without having to give the full path to the executables or directories to locate. Without environment variables, users will have to search for and locate each executable or provide full paths and directories of important program files. Environment variables create shortcuts to executables within those paths specified. Below is how one can add or edit Windows PATH environment variables so they can run executables from their custom directories.
How to set path and environment variables in Windows 11
As mentioned above, PATH and environment variables create shortcuts to executables and directories. It allows custom programs to be launched and used efficiently in Windows. Administrator privileges are required to modify the path and environment variables. Below is how to add or edit Windows PATH and environment variables in Windows 11. First, go to Windows Settings app. To get to the Settings app, you can use the Windows key + I shortcut or click on Start ==> Settings as shown in the image below: Alternatively, you can use the search box on the taskbar and search for Settings. Then select to open it. Windows Settings pane should look similar to the image below. In Windows Settings, click System, and select the About tile on the right pane of your screen shown in the image below. On the About screen, click on the Advanced system settings link as highlighted below. In the System Properties window, click the Advanced tab, then click the Environment Variables button near the bottom of that tab. You’ll typically want to add to the System variables so everyone on the system can use it. If you use the User variable, only a user who adds it may use the variable. Highlight the Path variable in the System variables section and click the Edit button. Next, add or modify the path lines with the paths you want the computer to access. Each directory path is separated with a semicolon, as shown below. You can click the New button to add new paths or edit to modify the existing path. Delete will delete a path. If you know the path, simply type it in or copy and paste it. If you prefer, you can also click Browse and then navigate to the desired path you want to include in the System path variables. Each directory path is separated with a semicolon, as shown below. That should do it. Conclusion: This post showed you how to add or edit PATH environment variables in Windows 11. If you find any error above or have something to add, please use the comment form below.