Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Console Application in Background (no UI)? [duplicate]

Tags:

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

like image 388
Josh Stodola Avatar asked Feb 10 '10 17:02

Josh Stodola


People also ask

How do I run a console application without showing the console?

If you do not know what I am talking about: press Win+R, type “help” and press ENTER. A black console window will open, execute the HELP command and close again. Often, this is not desired. Instead, the command should execute without any visible window.

How do I run a .NET application in the background?

Under your project: Go to Properties > Application Select "Windows Application" as the Output type. This would be the least impact and you can keep your Windows Task Scheduler running the same task. Show activity on this post. Show activity on this post.

What is console in c sharp?

A console application, in the context of C#, is an application that takes input and displays output at a command line console with access to three basic data streams: standard input, standard output and standard error.

What is use of console?

The console is an operating system window where users interact with the operating system or with a text-based console application by entering text input through the computer keyboard, and by reading text output from the computer terminal.


1 Answers

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

like image 182
Arthur Avatar answered Oct 03 '22 19:10

Arthur