windows console 控制台自启动 var fileName = Assembly.GetExecutingAssembly().Location; System.Diagnostics.Process.Start(fileName);