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

windows 全局变量

windows 全局变量

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 Windows i

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值