Process.Start程序启动后,在后台运行
C#中如何使用Process.Start()启动一个exe窗口程序,并且这个程序在后台运行?
我使用的是
ProcessStartInfo startInfo = new ProcessStartInfo("D:BachFile.exe");
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.CreateNoWindow = true;
startInfo.UseShellExecute = false;
Process.Start(startInfo);
但不起作用BachFile.exe程序 还是在前台