public void ExportKey(string RegKey, string SavePath) { string path = "\"" + SavePath + "\""; string key = "\"" + RegKey + "\""; System.Diagnostics.Process proc = new System.Diagnostics.Process(); try { proc.StartInfo.FileName = "regedit.exe"; proc.StartInfo.UseShellExecute = false; proc =System.Diagnostics.Process.Start("regedit.exe", "/e " + path + " " + key + ""); if (proc != null) proc.WaitForExit(); } finally { if (proc != null) proc.Dispose(); } MessageBox.Show("The export process is complete.\n\nCheck your desktop or the folder that you have specified as your save location."); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)