1System.Diagnostics.Process process1;
2process1 = new System.Diagnostics.Process();
3//Do not receive an event when the process exits.
4process1.EnableRaisingEvents = false;
5
6//regTest file ExtenderProvidedPropertyAttribute works in Region, txt, rtf
7//The "/C" Tells Windows to Run The Command then Terminate
8string strCmdLine;
9strCmdLine = "/C regedit.exe /e C:\\Users\\JohnnyL\\Desktop\\RegTest1.rtf";
10
11System.Diagnostics.Process.Start("CMD.exe", strCmdLine);
12process1.WaitForExit();
13process1.Close();