开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜