c# 如何让一个项目启动另一个项目

1.新建一个项目,将Form1删掉,将Program中换成以下代码

static class Program
{
      [STAThread]
      static void Main()
      {
          System.Diagnostics.Process process = new System.Diagnostics.Process();
          process.StartInfo.FileName = @"E:\相变.exe";   //为所要启动项目的exe路径
          process.Start();
      }
}

 

posted on 2013-06-04 18:08  Hai_阔天空  阅读(991)  评论(0)    收藏  举报

导航