I'd like to know if it's possible to list ALL environment variables from Windows' Command Prompt.
Something equivalent to PowerShell's gci env:
(or ls env:
or dir env:
).
I'd like to know if it's possible to list ALL environment variables from Windows' Command Prompt.
Something equivalent to PowerShell's gci env:
(or ls env:
or dir env:
).
Jon has the right answer, but to elaborate a little more with some syntactic sugar..
enables you to see the variables one page at a time, rather than the whole lot, or
sends the output to a file output.txt which you can open in notepad or whatever...
don't lose time to search it in registry
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
returns less then set command
You can use
SET
in cmdTo show the current variable, just
SET
is enoughTo show certain variable such as 'PATH', use
SET PATH
.For help, type
set /?
.