环境变量在哪里存储在注册表中? [英] Where are environment variables stored in registry?

查看:178
本文介绍了环境变量在哪里存储在注册表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要远程访问环境变量。为了做到这一点,我认为最好的方法是从注册表中读取它。



存储在注册表中的环境变量在哪里?

解决方案

它们通过Server 2012 R2存储在XP中:



用户变量

  HKEY_CURRENT_USER\Environment 

系统变量

  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment 

这是一篇关于其他链接的好文章:



vlaurie.com/computers2/Articles/environment.htm


I need to access an environment variable remotely. To do this I think the best way is to read it from registry.

Where are environment variables stored in registry?

解决方案

Here's where they're stored on XP through Server 2012 R2:

User Variables

HKEY_CURRENT_USER\Environment

System Variables

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Here's a good article on this with other links:

vlaurie.com/computers2/Articles/environment.htm

这篇关于环境变量在哪里存储在注册表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆