Questions tagged [console-application]

A console application is a computer program designed to be used via a text-only computer interface, such as a text terminal, the command line interface of some operating systems (Unix, DOS, etc.) or the text-based interface included with most Graphical User Interface (GUI) operating systems, such as the Win32 console in Microsoft Windows, the Terminal in Mac OS X, and xterm in Unix.

A console application is a computer program designed to be used via a text-only computer interface, such as a text terminal, the command line interface of some operating systems (Unix, DOS, etc.) or the text-based interface included with most Graphical User Interface (GUI) operating systems, such as the Win32 console in Microsoft Windows, the Terminal in Mac OS X, and xterm in Unix. A user typically interacts with a console application using only a keyboard and display screen, as opposed to GUI applications, which normally require the use of a mouse or other pointing device. Many console applications such as command line interpreters are command line tools, but numerous text-based user interface (TUI) programs also exist.

As the speed and ease-of-use of GUI applications have improved over time, the use of console applications has greatly diminished, but not disappeared. Some users simply prefer console based applications, while some organizations still rely on existing console applications to handle key data processing tasks.

7241 questions
30
votes
4 answers

Add Web Reference option missing in VS2008

I'm trying to add a Web Reference to a VS2008 .Net 3.5 Console Application but the option's not there. The options to "Add Reference" and "Add Service Reference" are there.
Guy
  • 65,082
  • 97
  • 254
  • 325
30
votes
4 answers

Why does closing a console that was started with AllocConsole cause my whole application to exit? Can I change this behavior?

What I want to have happen is that the console window just goes away, or better yet that it is hidden, but I want my application to keep running. Is that possible? I want to be able to use Console.WriteLine and have the console serve as an output…
Kelsie
  • 1,000
  • 1
  • 9
  • 21
30
votes
1 answer

Opening a TStream on stdin/stdout in a Delphi console app

I'm trying to write a Delphi console application that creates a TStream for its standard input, and another TStream for its standard output. (It will be launched by a host app with its input and output redirected to pipes, and will be passing binary…
Joe White
  • 94,807
  • 60
  • 220
  • 330
29
votes
6 answers

Compile to stand alone exe for C# app in Visual Studio 2010

Similar to this question Compile to a stand-alone executable (.exe) in Visual Studio But nothing there works for me. I've written an app that is very simple in C#. I want this to compile to a stand alone exe file, but I can't seem to find the…
Wil
  • 2,328
  • 2
  • 20
  • 27
29
votes
9 answers

How to hide a console application in C#

I have a console application in C#, and I want that the user won't be able to see it. How can I do that?
menacheb
  • 475
  • 1
  • 6
  • 17
29
votes
10 answers

C++ How do I hide a console window on startup?

I want to know how to hide a console window when it starts. It's for a keylogger program, but it's not my intention to hack someone. It's for a little school project that I want to make to show the dangers about hackers. Here's my code so…
mads232
  • 339
  • 1
  • 5
  • 14
29
votes
3 answers

C# console application icon

Does anyone know how to set a C# console application's icon in the code (not using project properties in Visual Studio)?
pour toi
  • 1,026
  • 2
  • 13
  • 25
29
votes
6 answers

How can I use System.Web.Caching.Cache in a Console application?

Context: .Net 3.5, C# I'd like to have caching mechanism in my Console application. Instead of re-inventing the wheel, I'd like to use System.Web.Caching.Cache (and that's a final decision, I can't use other caching framework, don't ask…
Ron Klein
  • 9,178
  • 9
  • 55
  • 88
28
votes
10 answers

Wrapping a C# service in a console app to debug it

I want to debug a service written in C# and the old fashioned way is just too long. I have to stop the service, start my application that uses the service in debug mode (Visual studio 2008), start the service, attach to the service process and then…
Jack Smit
  • 3,093
  • 4
  • 30
  • 45
28
votes
4 answers

Move console cursor to specified position

I'm writing a simple console application (80x24) in Java. Is there a gotoxy(x,y) equivalent for the console?
setzamora
  • 3,560
  • 6
  • 34
  • 48
27
votes
2 answers

Code stops executing when a user clicks on the console window

I've got a console application that executes my code without user interaction. If the user clicks within the console window, on purpose or on accident, all execution stops. This has something to do with copying text from the console window. The…
Сергей
  • 423
  • 1
  • 4
  • 7
27
votes
7 answers

C++ Detect when user presses arrow key

I have been having a problem with detecting arrow key presses in my C++ console application. I have tried everything I have found, both here and on other tutorial sites, but all of them give me the same thing whenever I press the arrow: Process…
27
votes
1 answer

Can you execute another EXE file from within a C# console application?

Can you execute another EXE file from within a C# console application? Can you pass arguments? Can you get the exit code back?
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
27
votes
9 answers

How do I print UTF-8 from c++ console application on Windows

For a C++ console application compiled with Visual Studio 2008 on English Windows (XP,Vista or 7). Is it possible to print out to the console and correctly display UTF-8 encoded Japanese using cout or wcout?
Paul Dixon
  • 4,201
  • 7
  • 28
  • 27
26
votes
2 answers

How to check for the previous path searched on a maze C#

I am trying to code an algorithm that solves a maze problem but I am facing some difficulty to apply it correctly. The algorithm runs over the walls instead of changing the direction after finding the valid point. Complete Code on Github I do not…
EAzevedo
  • 751
  • 2
  • 17
  • 46