cmd.exe 的环境变量存储在哪里? [英] Where are the environment variables for cmd.exe stored?
问题描述
我知道如何在我的 Windows 10 机器上查找环境变量.
I know how to find environment variables on my Windows 10 machine.
但是,当我在 cmd.exe 中运行 set
以及在 cmd.exe 中运行 set ENV_VAR=val
命令时,还会列出其他变量存储其他没有的环境变量似乎与全局和用户环境变量存储在同一位置.
However, there are other variables that are listed when I run set
in cmd.exe and when I run the set ENV_VAR=val
command in cmd.exe, it stores additional environment variables that do not seem to be stored in the same location as global and user environment variables.
例如:APPDATA、HTTP_PROXY、SystemRoot、USERDNSDOMAIN
Example ones are: APPDATA, HTTP_PROXY, SystemRoot, USERDNSDOMAIN
这些存储在哪里?
推荐答案
cmd.exe shell 动态创建一些伪变量.这些不是静态定义的.我不知道 HTTP_PROXY.
The cmd.exe shell creates some pseudo-variables dynamically. These are not statically defined. I do not know about HTTP_PROXY.
CD
RANDOM
DATE
TIME
ERRORLEVEL
其他是系统控制的.改变它们不太可能带来任何好处.
The others are system controlled. It is unlikely that any good would come from changing them.
APPDATA
SystemRoot
USERDNSDOMAIN
这篇关于cmd.exe 的环境变量存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!