windows 全局变量_如何在Windows中使用全局系统环境变量

windows 全局变量_如何在Windows中使用全局系统环境变量_第1张图片

windows 全局变量

windows 全局变量_如何在Windows中使用全局系统环境变量_第2张图片

Any system administrator who spends a good bit of time in the command prompt or batch scripts is probably well aware of built in environment variables Windows offers (i.e. Path, WinDir, ProgramFiles, UserProfile, etc.). If you find yourself using a particular value over and over, wouldn’t it be great if you had your own variable which you can use the same way as the built in values?

任何在命令提示符或批处理脚本中花费大量时间的系统管理员都可能清楚地了解Windows提供的内置环境变量(即Path,WinDir,ProgramFiles,UserProfile等)。 如果您发现自己一遍又一遍地使用特定值,那么如果您拥有自己的变量并且可以使用与内置值相同的方式,那岂不是很好吗?

With a few clicks, you can create and maintain you own environment variables which are both global on the system and survive reboots.

只需单击几下,您就可以创建和维护自己的环境变量,这些变量既在系统上是全局的,又可以在重新引导后生存下来。

创建自定义系统环境变量 (Creating a Custom System Environment Variable)

Creating a new global system variable is quite simple and is one of those features hiding in plain sight. Please note the screenshots are for Windows Server 2008, however the process for most versions of Window

你可能感兴趣的:(python,linux,shell,windows,java)