from the doc (setx /?
)
Because SETX writes variables to the master environment in the
registry, edits will only take effect when a new command window is
opened – they do not affect the current CMD or PowerShell session.
More Related Contents:
- Variables are not behaving as expected
- Single line with multiple commands using Windows batch file
- Batch file to delete files older than N days
- How do I measure execution time of a command on the Windows command line?
- Windows Batch Variables Won’t Set
- Where is “START” searching for executables?
- What does %~d0 mean in a Windows batch file?
- How to run a PowerShell script from a batch file
- How to code a BAT file to always run as admin mode?
- How can you zip or unzip from the script using ONLY Windows’ built-in capabilities?
- Run batch file as a Windows service
- windows batch SET inside IF not working
- How can I run a program from a batch file without leaving the console open after the program starts?
- How to check if a file exists from inside a batch file [duplicate]
- Batch files: List all files in a directory with relative paths
- How to run a PowerShell script within a Windows batch file
- Windows batch script to parse CSV file and output a text file
- Using parameters in batch files at Windows command line
- Resolve absolute path from relative path and/or file name
- How to create an infinite loop in Windows batch file?
- Convert a small PS script into a long line in a .BATch file
- Kill a Process by Looking up the Port being used by it from a .BAT
- What is the easiest way to reset ERRORLEVEL to zero?
- Remove unwanted path name from %path% variable via batch
- How to test if a path is a file or directory in Windows batch file?
- Echo a blank (empty) line to the console from a Windows batch file [duplicate]
- How to get last modified date on Windows command line for a set of files?
- What would be the Windows batch equivalent for HTML’s input type=”password”?
- how to empty recyclebin through command prompt?
- How to check if a parameter (or variable) is a number in a Batch script