简体   繁体   English

C#控制台应用程序-如何在Windows下合并进程

[英]c# console-application - how to unite processes under windows

I have few console-applications processes that I run under windows. 我在Windows下运行的控制台应用程序进程很少。 Each process runs under separate window and it looks messy. 每个进程在单独的窗口下运行,看起来很乱。 Is there a way to unite the processes under one hub that will manage them? 有没有一种方法可以将流程统一在一个可以管理它们的中心下?

You can create new console application that will launch others with special parameters (to hide windows) and receive their standart output, so it will be possible to show output from all processes in your window. 您可以创建新的控制台应用程序,该应用程序将启动具有特殊参数的其他应用程序(以隐藏窗口)并接收其标准输出,因此可以在窗口中显示所有进程的输出。

In some cases alternative way could be to convert those processes to Windows services. 在某些情况下,替代方法可能是将那些进程转换为Windows服务。

Update: googled for quick example. 更新:谷歌搜索快速示例。 It is here or in this SO question 在这里或在这个问题中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用C#在内存中执行.NET控制台应用程序? - How to execute a .NET console-application in memory using C#? 在C#控制台应用程序中删除控制台键入的文本 - remove console Typed Text in C# Console-Application C# 控制台应用程序通过互联网配对 - C# Console-Application paired over internet 如何运行在服务而不是后台进程下运行的 c# windows 服务应用程序? - How to run c# windows service application run under services rather than background processes? 安全退出控制台应用程序? - Safely exit console-application? ac#控制台应用程序中止时如何终止子进程? - How to terminate child processes when a c# console application is aborted? 当我从控制台应用程序打开它时,为什么我的 Windows 窗体布局会发生变化? - Why does my Windows-Forms Layout change, when I am opening it from a Console-Application? 如何连接控制台应用程序和Windows窗体应用程序C# - How to connect console application and Windows form application C# 如何在 C# 控制台应用程序中显示专门运行应用程序的进程列表 - How to display the list of processes especifically running Application programs in C# Console Application C#:Windows控制台应用程序到Windows服务 - C#: Windows Console Application to Windows Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM