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