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

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

问题描述

PATHTMP等用户变量和系统变量有什么区别?

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

我不小心删除了用户变量PATH.我该怎么办?

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.

如果您不小心删除了系统的,请打开注册表编辑器,然后转到HKLMControlSet002ControlSession ManagerEnvironment(假设您当前的控件集不是 ControlSet002).然后找到Path值,将数据复制到HKLMCurrentControlSetControlSession ManagerEnvironmentPath值中.您可能需要重新启动计算机.(希望这些备份不是很久以前的,它们包含您需要的信息.)

If you deleted the system ones by accident, bring up the Registry Editor, then go to HKLMControlSet002ControlSession ManagerEnvironment (assuming your current control set is not ControlSet002). Then find the Path value and copy the data into the Path value of HKLMCurrentControlSetControlSession ManagerEnvironment. 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天全站免登陆