:: Check a specific variable echo %YOUR_VARIABLE_NAME% :: View the complete PATH string echo %Path% Use code with caution.
# Check a specific variable $env:YOUR_VARIABLE_NAME # View the complete, updated PATH array $env:Path -split ';' Use code with caution. In Command Prompt: windows reload env variables
It became a staple in the Windows developer's toolkit. You would install new software via the command line, receive a message saying "Environment variables have changed," and you would type refreshenv . Suddenly, the current terminal session could see the new variables. No restart required. :: Check a specific variable echo %YOUR_VARIABLE_NAME% ::