开发者

Add to registry key from file c#

开发者 https://www.devze.com 2023-03-28 00:22 出处:网络
i\'m use this code for add file .reg to registry, but this method doesn\'t work. Windows said to have import the file but don\'t appear the registry keys.开发者_JAVA百科

i'm use this code for add file .reg to registry, but this method doesn't work. Windows said to have import the file but don't appear the registry keys.

开发者_JAVA百科
Process regeditProcess = Process.Start("regedit.exe", "/s key.reg");
regeditProcess.WaitForExit();


As brad suggested, is there a reason why you can't use the Registry class? If the file is still having problems, you could always parse it some data structure and use the registry class to insert it into the registry.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号