The path environment variable was not set successfully

Windows why set the environment variable did not take effect

The reason for this problem is that the setting method is not correct.

The correct setting method and steps are as follows:

1. First, select “this computer”, click the right mouse button, and then select the “Properties” option, as shown in the figure below, and then go to the next step.

2. Second, after completing the above steps, select “Advanced System Settings”, as shown in the figure below, and then go to the next step.

3, then, after completing the above steps, select the “Environment Variables” option, and then click “OK”, as shown in the figure below, and then go to the next step.

4. Then, after completing the above steps, if you want to create a new environment variable, click the “New” button, and then enter the content and location, as shown below, and then go to the next step.

5, then, after completing the above steps, if you want to modify the environment variable, click the “Modify” button, for example, to modify the content of the “Path”, after selecting, enter the English state of the semicolon and the path, and then click “OK”. Then click the “OK” button, as shown below, and then go to the next step.

6. Finally, after completing the above steps, the final setup is complete, make sure to click each “OK” button to complete the setting of environment variables, as shown below. Thus, the problem is solved.

Some of my friends said that they deleted the path environment variable by mistake when they configured adb, and there is no more path in the registry. environment variables are generally used in the operating system to specify the operating environment of the operating system, and the path variable is used to search for the path of an executable program on the system. The path variable stores the search path for executable programs in the system. If path is missing from the registry, you’ll have to restore the system.

The specific method is as follows:

1, right-click Computer – Properties.

2, select – Advanced System Settings.

3, click – System Protection.

4, select – System Restore.

5. Select another restore point – Next.

6. Select a more recent point in time to restore.

7, click Finish – wait for the system to be restored.

8, after restoring the system, the path changes back to the default value.

About the path environment variable recovery method shared here, is not very simple, there is a need for this small partners to take a look!