从记事本写入 REG_EXPAND_SZ reg 键
我正在尝试从记事本编写一个 reg 密钥,并且需要创建一个 REG_EXPAND_SZ
值。当我之前使用过这个时,我使用“”表示 REG_SZ
和 dword:
表示 REG_DWORD
等等,但我不知道如何编写一个REG_EXPAND_SZ
,因此我导出了一个现有值并在记事本中查看了它。它出现为 hex(2)
然后加载我不理解的十六进制代码!这真的是您在记事本中创建扩展值的方式吗?如果是,那么如何将字符串转换为其正在使用的格式?我确实尝试将十六进制转换为字符串,但它与 regedit 中显示的原始字符串不匹配。非常感谢!
I am trying to write a reg key from notepad and I need to create a REG_EXPAND_SZ
value. When I have used this before I have used "" for REG_SZ
and dword:
for REG_DWORD
and so on but I don't know how to write a REG_EXPAND_SZ
so I exported an existing value and looked at it in notepad. It came up as hex(2)
then loads of hex code that I don't understand! Is this really how you create a expand value in notepad? If it is then how can I convert a string to the format it is using? I did try converting hex to string but it didn't match the original string shown in regedit. Thanks very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一番寻找和猜测,我终于找到了答案。文本的格式是 ACSII,将其转换为十六进制,您将获得密钥的正确格式。这是我用来转换它的网站 - http://d21c.com/sookietex/ASCII2HEX.html。
After a lot of searching and guessing I finally found the answer. The format the text is in is ACSII, convert that to hex and you get the right format for the key. This is the site I used to convert it - http://d21c.com/sookietex/ASCII2HEX.html.