启动程序:
string path="d:\\test.exe"; //外部winform程序 string args = "aa bb cc"; System.Diagnostics.Process.Start(path,args); //启动程序
外部winform程序test.exe接收参数:
Program.cs
/// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new form1(args)); }
标签:传参,string,启动,C#,args,程序,Application,winform From: https://www.cnblogs.com/handsomeziff/p/17286907.html