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

Update all null values in column .netcore console app

I've got a console app which updates a column in the database called InstagramId based off user input. I want to be able to query the database and if there's a instagramId which is null, to update it with the correct instagramID based off their…
rprogramr
  • 33
  • 1
  • 7
2
votes
1 answer

How do I get user input to use my validate method for a login console application?

Basically I want to be able to ask the user the enter their details and from the user input I want to be able to cross check the credentials with data in a text file which I have already setup I am simply just having trouble figuring out a way to…
2
votes
1 answer

Spring Boot Data console application

I'm gonna create a Java console application for accessesing a database (MySQL). I'm gonna use Spring Boot/Spring Data JPA. What is the correct way to create a console application using Spring Boot? I found a few ways to do…
Daniel
  • 295
  • 2
  • 9
2
votes
0 answers

How to attach Serilog to dotnetcore Logging framework and inject the logging service as an open-generic type

I'm trying to attach Serilog to Dotnet core logging framework in a console application. Everything works great in terms of configuration. However, I cannot somehow get the Dependency Injection to work. For this logging approach that I'm following,…
2
votes
3 answers

Masm32 assembly program isn't working as expected

I have the following source for an assembly program that I got in a Youtube video tutorial: .386 .model flat, stdcall option casemap:none include c:\masm32\include\windows.inc include c:\masm32\include\masm32.inc include…
Victor
  • 1,655
  • 9
  • 26
  • 38
2
votes
1 answer

Adding Splash Screen to start of video using FFMPEG

I'm busting my head against the wall trying to add a splash screen. Here's what I'm doing: Convert the still image to "ts" file with silenced audio stream ffmpeg -loop 1 -i image.png -c:v libx264 -t 10 -c:a libvo_aacenc -b:a 160k -bsf:v…
Solat Ali
  • 39
  • 1
  • 6
2
votes
2 answers

c++ cross-platform console application, how to accept runtime commands from user input?

Is there a way to accept user input at runtime for console applications? I have a console application outputs a lot information when it is running, I want to change some parameters of the application at runtime without interruping it. I was…
yukang
  • 21
  • 2
2
votes
0 answers

Console Application, detect launched from an exe file or from terminal

I developed an console application, with the dotnet framework. I want the application to run when called in a terminal session and when executing the .exe file. Now I got a problem with the design of my application. When launching the exe, I need to…
Moritz
  • 378
  • 5
  • 14
2
votes
2 answers

Console application is not taking config values from its config file after deployment

In my console application,it has application settings created and also has app.config file. After build I get appname.exe and appname.exe.config (it has test configuration values). when I deploy these files on production and change some entries in…
Biztalker
  • 101
  • 1
  • 2
  • 14
2
votes
2 answers

How to exit from an endless Java program and print a message?

Say I have a java program (actually I wrote a CLI) which goes into an endless loop and within that loop it's incrementing a counter. When I hit Ctrl + C from my command line to exit from the program, can I print the value of the counter and then…
Saturnian
  • 1,686
  • 6
  • 39
  • 65
2
votes
0 answers

Creating a room with doors in the for loop

I'm new here. It's OK? My question is simple, I managed to generate walls with this simple for, but I just needed to generate a blank space as if it were a door. I'll leave my code below class Program { static void Main(string[] args) …
2
votes
1 answer

c# - Windows PowerShell workflow does not work with Process.Start() or PowerShell.Create()

I try to run Windows PowerShell workflow script from console application. Approach 1: var processInfo = new System.Diagnostics.ProcessStartInfo() { FileName = @"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", …
IamP
  • 108
  • 7
2
votes
1 answer

How to find the next element in the tree

I have a tree like below: /* Tree * 5 * / \ * 3 1 * / \ / \ * 2 4 6 7 */ I am creating this tree using a class called Node as below: var root = new Node( 5, new…
user1929483
  • 71
  • 1
  • 7
2
votes
0 answers

std array too few template arguments

When runnig my project i see these problems. Does anyone know the solution? 'std array': too few template arguments. cannot use this indirection on type 'std::array'. too few arguments for class template "std::array". I tried to remove using…
2
votes
1 answer

Environment.ExitCode not respected when Main throws exception. How to return nonzero exitcode as well as throwing exception?

// Net core 3.1 Console application class Program { public static void Main() { Environment.ExitCode = 1; throw new Exception("boom"); } } The above code results in exit code 0! I expected it to be…
David S.
  • 5,965
  • 2
  • 40
  • 77