myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName =“C:\HelloWorld.exe”; myProcess.StartInfo.CreateNoWindow = true;
仅仅设置createnowindow=true,有时候不起作用。需要同时设置useshellexcute
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName =“C:\HelloWorld.exe”; myProcess.StartInfo.CreateNoWindow = true;
仅仅设置createnowindow=true,有时候不起作用。需要同时设置useshellexcute