用户变量与系统变量有什么区别? [英] What is the difference between user variables and system variables?

查看:189
本文介绍了用户变量与系统变量有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户变量(例如 PATH TMP 等与系统变量之间有什么区别? p>

我意外删除了用户变量 PATH 。我应该做什么?

解决方案

右键单击我的电脑,然后转到Properties-> Advanced-> Environmental Variables ..



以上是用户变量,以下是系统变量。为应用程序创建环境时组合元素。系统变量为所有用户共享,但用户变量仅适用于您的帐户/个人资料。



如果您意外删除了系统变量,请打开注册表编辑器转到 HKLM\ControlSet002\Control\Session Manager\Environment (假设您当前的控件集 ControlSet002 )。然后找到 Path 值,并将数据复制到路径 HKLM\CurrentControlSet \Control\Session Manager\Environment 。您可能需要重新启动计算机。 (希望这些备份不是来自不久以前,它们包含您需要的信息。)


What is the difference between user variables such as PATH, TMP, etc. and system variables?

I accidentally deleted the user variable PATH. What am I supposed to do?

解决方案

Right-click My Computer and go to Properties->Advanced->Environmental Variables...

What's above are user variables, and below are system variables. The elements are combined when creating the environment for an application. System variables are shared for all users, but user variables are only for your account/profile.

If you deleted the system ones by accident, bring up the Registry Editor, then go to HKLM\ControlSet002\Control\Session Manager\Environment (assuming your current control set is not ControlSet002). Then find the Path value and copy the data into the Path value of HKLM\CurrentControlSet\Control\Session Manager\Environment. You might need to reboot the computer. (Hopefully, these backups weren't from too long ago, and they contain the info you need.)

这篇关于用户变量与系统变量有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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