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
2
votes
1 answer

Task scheduler console application shows just in time debugger on exception preventing program to run again

I have a console application that runs every 5 minutes in Windows Task Scheduler. The program doesn't run again if the program is still running after 5 minutes, so only one instance at a time. However, when an exception occurs, the just in time…
2
votes
1 answer

fragile console script: pkg_resources.DistributionNotFound

If I create console_scripts via entry_point in setup.py, then this file gets created: #!/home/myproject_cok_d/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'mylib','console_scripts','do-magic' __requires__ = 'mylib' import re import sys from pkg_resources…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
2 answers

Exit do-while loop application

I have a little problem with my console app. Applications should get numbers from user and add them to the list but if input is "c", it should turn off. I cant figured out how to verify the "c" variable without hanging the app with…
M.Matt
  • 69
  • 5
2
votes
3 answers

Navigate to a URL (for opening a web page) from a WPF application

I am writing a consumer application for TwitPic with OAuth Echo. I need to navigate the user to a web page when they try to get a pin code from Twitter. How can I navigate them from a WPF form when the consumer clicks a button?
tugberk
  • 57,477
  • 67
  • 243
  • 335
2
votes
1 answer

publish console app and alter ASPNETCORE_ENVIRONMENT in Core 2.1

This doesn't seem to work in a core console app: dotnet publish myproject.csproj /p:EnvironmentName=MyEnvironment Is there an alternative for publishing a console app that alters the environment name variable programmatically?
user441365
  • 3,934
  • 11
  • 43
  • 62
2
votes
2 answers

Dependency Injection with classes which inherit from the same interface Console .Net Core

I'm working on a .Net Core Console Application with two classes(GenerateCsv,GenerateTxt) which inherit from the same interface (GenerateFile). They Both take IReadFile,IWriteFile interfaces as constructor parameters. I want to use Dependency…
Daina Hodges
  • 823
  • 3
  • 12
  • 37
2
votes
1 answer

Is (File.Encrypt) allowed with Windows 7 Home Premium?

When I run the code below, my console app outputs: "Unhandled Exception: System.IO.IOException: The Request is not supported." static void Main() { var xmlFile = "Encrypt.xml"; File.Encrypt(xmlFile); } I'm running Windows 7 Home Premium,…
James Litewski
  • 451
  • 2
  • 6
  • 16
2
votes
2 answers

How to Console.ReadLine from one thread and consume ConsoleKeys from another thread?

I'm making a test console application. This application runs a void task (I can't change this fact), and for it to remain opened I insert Console.ReadLine at end of Main method. Is there any way to consume each key being pressed from other threads?…
2
votes
2 answers

Map for a snake video game in C

So I'm trying to print the map for my snake game. Here is the code: #define WIDTH 20 #define HEIGHT 20 struct coordinate { int x; int y; }; typedef struct coordinate coordinate; coordinate map[HEIGHT][WIDTH]; void init_map(){ // Function…
2
votes
1 answer

What is the difference between using a .net core CLI and a .net core console app?

I am talking about this CLI extension: Microsoft.Extensions.CommandLineUtils. The project created is a console application, but this CLI extension has been added to it, so that arguments can be accepted. What I do not understand is that, console…
57913
  • 783
  • 1
  • 6
  • 13
2
votes
1 answer

Visual Studio 2017, Build solution or Publish not generating an .EXE

I have developed a C# console application that is working properly from inside the Visual Studio environment. When I choose "Build Solution" under "Release" (but also under "Debug") a .DLL is generated, not an .EXE. I'm able to generate the .EXE…
migol
  • 21
  • 1
  • 2
2
votes
0 answers

MySql character encoding problem - currency sign (¤)

I have an issue displaying the typographic currency sign (¤) in a console application. The Console is showing ()(pasted, which does not show up here) - a boxed question mark: The database character set is utf8 with collation utf8_general_ci. The…
2
votes
1 answer

Newtonsoft.Json Usage in long trees

I'm trying so scrape some info from a JSON response but it fails; I think it may have to do with the way I'm making use of a library I'm new to. Below is the JSON instance that I'm trying to get data from; { "profileChanges":[ { …
2
votes
1 answer

Command processor vs Console in C++

I am creating a C++ console application and want to check whether the command processor is available: if (!system(NULL)) //check to see if command processor is available { fprintf(stderr, "Error: Command processor not available\n"); …
2
votes
1 answer

How do I create an EXE output from a .Net Core console application project in Visual Studio 2017?

Why, when I create a .NET Core Console Application project in Visual Studio 2017, does it output a DLL file instead of an EXE file? Well, we know the answer to this and it's been well documented and addressed in other, very popular questions on…
RoboJ1M
  • 1,590
  • 2
  • 27
  • 34