开发者

Add to registry key from file c#

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜