在后台启动我的控制台应用程序 [英] starting my console application at background
问题描述
我的客户希望我的运行 Internet Explorer 的 C# 控制台应用程序作为后台窗口开始工作,并在后台打开 watin 打开的 Internet Explorer 窗口.我使用 Visual Studio 2005 和 watin 版本.2.0.20.1989.任何答案我该怎么做?
My client wanted my C# console application which runs Internet Explorer, to start work as a background window plus the Internet Explorer window that watin opens to be on background. I use Visual Studio 2005 and watin ver. 2.0.20.1989. Any answer how can I do this?
推荐答案
您甚至不需要编写任何程序即可完成此任务.您可以使用一个命令行:
You don't even need to program anything to accomplish this. There's a command line that you can use:
start /min YourExecutable.exe
根本不需要在你的程序中写任何东西.这将在后台启动任何常规控制台应用程序作为最小化窗口.请参阅 start 的完整文档,了解更多有趣的选项.
No need to write anything in your program at all. This will start any regular console application in the background as a minimized window. See the full documentation for start for more fun options.
这篇关于在后台启动我的控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!