我正在尝试从基于 IIS 的 Web 服务启动控制台应用程序,但它在服务器上不可见。
到目前为止的代码是:
string downloaderPath = ConfigurationManager.AppSettings["DownloaderExePath"];
System.Diagnostics.ProcessStartInfo si = new System.Diagnostics.ProcessStartInfo();
si.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
si.FileName = downloaderPath;
si.UseShellExecute = true; //false doesn't make a difference
System.Diagnostics.Process.Start(si);
该过程触发,但有错误。想让它在屏幕上可见,这可能吗?