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

C# Handling Message Class IPM.Outlook.Recall

I have a console application using Outlook = Microsoft.Office.Interop.Outlook reference that iterates through mailitems in a set of shared inboxes and saves the message fields to a database, the message to a specific file path for reference in a…
M. Rose
  • 31
  • 4
2
votes
0 answers

ClickOnce console application running from Task Scheduler will not update

I have console application deployed to local network drive with ClickOnce (offline). It is meant to run once daily. How do I setup a task in the Task Scheduler in such a way that when I publish a new version of the application, the task will run…
Yosef Bernal
  • 1,006
  • 9
  • 20
2
votes
2 answers

How to handle overlapping Console.Writeline()'s from fired Event?

Hey i am programming a RDP Bruteforce Protection program for a windows server i own, which even gets attacked after changing the RDP port :/ But i already suffer from logging in console, when there are 2 attacks at mostly same time, the console…
2
votes
2 answers

confusion with dereferencing argv

I have this small program: #include #include int main(int argc, char* argv[]) { printf("argv[1] -> %s\n", argv[1]); } Which I analyzed in gdb with the following commands: $ gdb -q --args foo hello Reading symbols from…
nerdzao
  • 21
  • 2
2
votes
1 answer

Multiple IHostedService in a console app execution order and delay time

I have two background services.One of them perform measurements via serialport and the other one called SettingsWorker fetching measurement settings(like number of sensors,modules,fetching delays and so on) and share it with via static…
2
votes
0 answers

How can I use NLog library in .net core Console App?

I have an .net core console application for chatting. I have two console app in my solution that names Client and Server. I want to log my activities. And I use nLog library for that. I implemented nlog and nlog.config Nuget Packages from Nuget…
2
votes
1 answer

Not able to read the Connection String present in appsettings.json file when running the .net core Console application from windows task scheduler

I have a .net core console application that is reading the connection string from the appsettings.json file. It works fine when I run the application from visual studio. But when I run this console application from the task scheduler it is not able…
Vivek Nuna
  • 25,472
  • 25
  • 109
  • 197
2
votes
1 answer

How to delete a specific line in a text file in c++

I am trying to remove a line inside a text file using c++. for example, I have a .txt file that contains text: booking.txt 1 jer 34 r er 2 43 45 34 456 3 2 4 5 6 4 45 546 435 34 5 cottage 1 323 23 6 we we r we 7 23 34 345 345 8 wer wer wer we I…
jreloz
  • 413
  • 4
  • 18
2
votes
4 answers

Issues in returning a List from a method and printing values in C#

I have a method like this static List Compare(List a, List b) I would like this function to return [aPoints bPoints] something like [2 1] But, I'm stuck on storing the values after the loop with if statements and putting them in…
Jacman
  • 1,486
  • 3
  • 20
  • 32
2
votes
1 answer

How to send Return/Enter character to the Console using WriteConsoleInput/WriteConsole

I have the following piece of code. I want to send the command "uci" and then Return/Enter to the console. However, I got no success doing so. Please kindly advise. Thank you! #include #include #include DWORD WINAPI…
Viet
  • 17,944
  • 33
  • 103
  • 135
2
votes
1 answer

Masking the user input as asterisks in Windows?

I need to create a simple password program where the program asks user to input password and when user inputs, it shows the characters as asterisks. Every tutorial out there uses getch() (in conio.h). But I don't want to use it. Is there any easy…
2
votes
3 answers

Why do Python docs recommend against using logging for normal console output?

In the Python docs on logging it says "the best tool for the task" of "Display[ing] console output for ordinary usage of a command line script or program" is to use the print() function. I don't understand why. What would be the reasoning behind…
Glemi
  • 676
  • 1
  • 7
  • 17
2
votes
1 answer

How do I publish a separate appsettings.json file when publishing a single .exe?

I have a console App with a config file. When I publish using the new PublishSingleFile setting in the .proj it publishes the app as one file (good) but it also adds the appsettings to that .exe. This means it isn't really a config file at this…
user1947960
  • 278
  • 2
  • 10
2
votes
0 answers

How to remove macOS Console devices connected over the network

I use console to track device logs. At work I've connected many co-workers phones to Xcode and have since removed them from the Device and Simulators window. However, those devices are still appearing in Console and when I select them I am able to…
Michael Ozeryansky
  • 7,204
  • 4
  • 49
  • 61
2
votes
1 answer

Download files from Google Books

I'm writing very simple application. It is supposed to download files from internet. I have URLs and names for files to save in tables. But my code doesn't work. for (int i = 1; i < links.Length; i++) { Uri uri = new Uri(links[i]); …
Stephanie
  • 77
  • 1
  • 6