开发者

Will a console process ran without a window exit with with my program?

开发者 https://www.devze.com 2023-04-03 20:23 出处:网络
will a process started with these settings: p.StartInfo.UseShellEx开发者_Python百科ecute = false;

will a process started with these settings:

                p.StartInfo.UseShellEx开发者_Python百科ecute = false;
                p.StartInfo.CreateNoWindow = true;
                p.StartInfo.RedirectStandardOutput = true;

close when my program closes? or crashes? for that matter?


No... it only terminates either by exiting itself or being killed either by your process or some other process or by the user (for example via Task Manager) - see for reference http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消