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.
精彩评论