- Search environment in the search bar
Click Edit the System Environment variables & edit as required
2. Open Command Prompt as Administrator
set PATH=C & Press Enter (This will refresh the environment variables)
4. Close and restart command prompt window
5. Finally, type
echo %PATH% & press Enter
This will automatically Refresh your windows environment variables.