On Windows 7/8/10, you can install Chocolatey, which has a script for this built-in.
After installing Chocolatey, just type refreshenv
.
More Related Contents:
- Variables are not behaving as expected
- Example of delayed expansion in batch file
- Setting a system environment variable from a Windows batch file?
- Set a persistent environment variable from cmd.exe
- How can I source variables from a .bat file into a PowerShell script?
- Single line with multiple commands using Windows batch file
- How do I measure execution time of a command on the Windows command line?
- Windows Batch Variables Won’t Set
- ‘Pretty print’ windows %PATH% variable – how to split on ‘;’ in CMD shell
- Escape double quotes in parameter
- How to verify if a file exists in a batch file?
- Windows command to convert Unix line endings?
- Stop and Start a service via batch or cmd file?
- IF… OR IF… in a windows batch file
- Why git can’t remember my passphrase under Windows
- How to run a PowerShell script within a Windows batch file
- How to run a command on command prompt startup in Windows
- Command line to remove an environment variable from the OS level configuration
- How to open an elevated cmd using command line for Windows?
- Printing PDFs from Windows Command Line
- Delete files or folder recursively on Windows CMD
- How to count no of lines in text file and store the value into a variable using batch script?
- How to test if a path is a file or directory in Windows batch file?
- How can I open a cmd window in a specific location?
- Split string with string as delimiter
- How to change Screen buffer size in Windows Command Prompt from batch script
- Delete all files and folders in a directory
- How do I remove the process currently using a port on localhost in Windows? [closed]
- How to expand a CMD shell variable twice (recursively)
- Split %date% in a batch file regardless of Regional Settings