22

Possible Duplicate:
.Net Console Application that Doesn’t Bring up a Console

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)?

Community
  • 1
  • 1
Josh Stodola
  • 81,538
  • 47
  • 180
  • 227
  • You might want to consider a windows service that wakes up every 10 minutes. – kenny Feb 10 '10 at 18:00
  • Please vote to close. I found a duplicate: http://stackoverflow.com/questions/934901/net-console-application-that-doesnt-bring-up-a-console – Josh Stodola Feb 10 '10 at 18:02
  • Although this may be a duplicate of the question listed, the answer here helped me more than any of the answers listed in the duplicate question as it told me the exact steps I needed to take – Rachel Nov 27 '12 at 15:18
  • 1
    @Rachel the the answer should be migrated to the other question - flag it for a moderator to do – mmmmmm Nov 27 '12 at 15:39

1 Answers1

42

Set on your Project in "Application" the Output Type to "Windows Application".

Arthur
  • 7,939
  • 3
  • 29
  • 46
  • 2
    I definitely like this solution better than the accepted in http://stackoverflow.com/questions/934901/net-console-application-that-doesnt-bring-up-a-console – Abe Dec 07 '10 at 21:16
  • Your Approach is easy and Elegant...Thanks – Pranav Mar 02 '12 at 07:30