111,092
社区成员




<add key="exePath" value="D:\Pro\bin\Debug\Pro.exe"/>
internal static void startProgram()
{
int index = ConfigurationManager.AppSettings["exePath"].Trim().ToString().LastIndexOf("\\");
string filePath = ConfigurationManager.AppSettings["exePath"].Trim().ToString().Substring(0, index);
string exePath = ConfigurationManager.AppSettings["exePath"].Trim().ToString();
Process process = new Process { StartInfo = { FileName = exePath, WorkingDirectory = filePath, Arguments = "test" } };
process.Start();
}