注册表备份和还原 [英] Registry backup and restore
问题描述
前一段时间,我在注册表中获得了一些信息,如下所示,
I was given some information on registry a while ago, here it is below,
Finally, for getting registry keys use something like:
With Registry.CurrentUser.OpenSubKey(KeyHere, IsWritableHere)
.GetValue(The Name Of The Value You Want To Get)
.GetValue(...)
.GetValue(...)
End With
And For Putting them back use "SetValue" instead of "GetValue"
我没有被告知如何使用它,所以我对此有些困惑.
I was not told how to use this, so I'm a bit confused about it.
注册表项:"HKEY_CURRENT_USER \ Software \ SYSTEMAX Software Development \ Sai"
Registry key: "HKEY_CURRENT_USER\Software\SYSTEMAX Software Development\Sai"
我可能会像这样使用它吗
Would I maybe use it like this,
With Registry.CurrentUser.OpenSubKey("HKEY_CURRENT_USER\Software\SYSTEMAX Software Development\Sai", "C:\PaintToolSAI_Backup\HKEY_CURRENT_USER.reg")
我不确定该怎么做,文件是否导出为.reg?
I'm not sure what to do precisely, and is the file exported as .reg?
如果有人可以解释一下,那将有所帮助. ^^
If someone could explain this a bit, that'd be helpful. ^^
推荐答案
我讨厌痛苦(不是真的),但是考虑到您尝试做相当简单的事情来获取文件路径的困难程度,您真的相信参与注册表是明智的吗?这可能导致系统退出
I hate to be a pain (well not really) but considering the amount of difficulty that you had trying to do something fairly simple getting a file path do you really believe it would be wise to get involved with the registry? Which could cause a system to quit functioning properly due to a simple mistake?
这篇关于注册表备份和还原的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!