为什么 regedit 给出的结果与 reg 查询的结果不同?
我的机器上安装了 jdk 1.6,并且 regedit 和 reg query 之间存在差异。从 regedit 我有以下密钥:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
但如果我尝试
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit"
我得到:
ERROR: The system was unable to find the specified registry key or value.
从 regedit HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft
有以下子项:
Java Development Kit
Java Plug-in
Java Runtime Environment
Java Wb Start
Prefs
但是reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft"
具有以下结果:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Auto Update
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs
因此,regedit 中缺少显示在 reg 查询中的键,以及 regedit 中显示的 reg 查询中缺少的其他键。
有什么想法为什么这些会有所不同吗?
I have jdk 1.6 installed on my machine and have a discrepancy between regedit and reg query. From regedit I have the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
but if I try
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit"
I get:
ERROR: The system was unable to find the specified registry key or value.
From regedit HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft
has the following children:
Java Development Kit
Java Plug-in
Java Runtime Environment
Java Wb Start
Prefs
But reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft"
has the following results:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Auto Update
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs
So there are keys missing from regedit that show up in reg query and others that are missing from reg query that show up in regedit.
Any ideas why these could be different?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试从具有管理权限的控制台运行
reg
。Try running
reg
from a console with administrative privileges.