First Win+R, then enter cmd, enter the terminal, and enter the following command:
set Path=c
Enter the above command and press Enter, as follows:
After closing the terminal, open the input cl again. If the following similar information is output, it means that the new environment variable has been added successfully, as follows:
The above is the method of adding new environment variables under the Windows system without restarting the computer to activate the new environment variables, thank you!