启动外部带config的exe程序并使之独立运行
<add key="textpath" value="D:\text\bin\Debug\text.exe"/>
internal static void startEXE()
{
int index = ConfigurationManager.AppSettings["textpath"].Trim().ToString().LastIndexOf("\\");
string RmufilePath = ConfigurationManager.AppSettings["textpath"].Trim().ToString().Substring(0, index);
string RmuexePath = ConfigurationManager.AppSettings["textpath"].Trim().ToString();
Process process = new Process { StartInfo = { FileName = RmuexePath, WorkingDirectory = RmufilePath, Arguments = "test" } };
process.Start();
}