嘻皮客娱乐学习网
标题:
C#实现启动一个进程
[打印本页]
作者:
成长九要送
时间:
2014-11-30 14:50
标题:
C#实现启动一个进程
代码如下:
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);
}
欢迎光临 嘻皮客娱乐学习网 (http://www.xipick.com/)
Powered by Discuz! X3.3