【问题标题】:Will a console process ran without a window exit with with my program?我的程序会在没有窗口退出的情况下运行控制台进程吗?
【发布时间】:2011-09-10 22:45:04
【问题描述】:

将使用这些设置启动进程:

                p.StartInfo.UseShellExecute = false;
                p.StartInfo.CreateNoWindow = true;
                p.StartInfo.RedirectStandardOutput = true;

当我的程序关闭时关闭?或崩溃?为此?

【问题讨论】:

  • 杀死它并找出答案。我非常怀疑它会继续存在。

标签: c# shell process console


【解决方案1】:

不...它只会通过退出自身或被您的进程或其他进程或用户杀死(例如通过任务管理器)来终止 - 请参阅http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-24
    • 1970-01-01
    • 2022-01-09
    • 1970-01-01
    • 1970-01-01
    • 2011-12-26
    • 2011-06-12
    • 2010-12-21
    相关资源
    最近更新 更多