问题描述
我刚刚安装了一个应用程序,该应用程序覆盖了我的$ PATH变量...因此,一堆东西将无法工作.在进行完整备份的同时,我希望有一种比还原,获取PATH,再次向前滚动"更简单的方法.
I have just installed an app which overwrote my $PATH variable... so now, a bunch of stuff will not work. While I have a full backup, I am hoping that there is an easier approach than to restore, get the PATH, the "roll it forward" again.
Windows注册表中(或其他任何地方)是否存在存储较旧的$ PATH设置的位置?
Is there a location in the windows registry (or anywhere else) that stores an older $PATH setting?
谢谢,GS
推荐答案
如果有人感兴趣,我找到了答案...使用REGEDIT,它在HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Control \ Session Manager \ Environment或HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Control \ Session Manager \ Environment
If anyone is interested, I found the answer...using REGEDIT, it is underHKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment orHKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment
在我的情况下,它在HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002下...
In my case, it was under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002...
GS
这篇关于需要恢复旧的$ PATH设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!