如何在后台(没有UI)运行控制台应用程序? [英] How to run Console Application in Background (no UI)?
问题描述
可能重复:
<一href="http://stackoverflow.com/questions/934901/net-console-application-that-doesnt-bring-up-a-console">.Net控制台应用程序,隐而不宣&rsquo的;吨调出控制台
我已经写在VB.NET控制台应用程序,这将成为一个Web服务器上的计划任务。它将运行每十分钟。的问题是,每十分钟它显示空的黑色CMD窗口处理时,它可以是分心。我该如何配置它在后台运行(有没有显示CMD窗口)?
I have a console application written in VB.NET that will become a scheduled task on a web server. It will run every ten minutes. The problem is that every ten minutes it displays the empty black CMD window while processing, which can be distracting. How can I configure it to run in the background (with no CMD window displayed)?
推荐答案
将在应用程序的输出类型为Windows应用程序项目中。
Set on your Project in "Application" the Output Type to "Windows Application".
这篇关于如何在后台(没有UI)运行控制台应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!