2020-04-16

myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName =“C:\HelloWorld.exe”; myProcess.StartInfo.CreateNoWindow = true;

仅仅设置createnowindow=true,有时候不起作用。需要同时设置useshellexcute

发布了51 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/wang191X/article/details/105568524