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();

      }

}

 

你可能感兴趣的:(C#)