代码如下:
if (System.Diagnostics.Process.GetProcessesByName(“Listener”).Length == 0)
{
ProcessStartInfo startInfo = new ProcessStartInfo(“C:\\Sandbox\\Remoting\\Solution\\ICADemo\\ICADemoListener\\bin\\Debug\\Listener.exe”);
startInfo.WindowStyle = ProcessWindowStyle.Normal;
startInfo.CreateNoWindow = true;
startInfo.WorkingDirectory = “C:\\Sandbox\\Remoting\\Solution\\ICADemo\\ICADemoListener\\bin\\Debug”;
System.Diagnostics.Process.Start(startInfo);
}