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
3 answers

How would I print martini glass pattern in c# optimal way

I am trying to print the martini glass pattern using c#. The pattern is like following: for input = 4; 0000000 00000 000 0 | | | | ======= for input = 5; 000000000 0000000 00000 000 0 | | | | …
Santosh
  • 2,355
  • 10
  • 41
  • 64
2
votes
0 answers

C# record video using webcam console app

I just want to make a simple console app that can record video from webcam and save it to a filepath in the background without a GUI interface. I just want to call it from another program and have it run based on the runtime of the mother program…
Spencer Trinh
  • 743
  • 12
  • 31
2
votes
3 answers

How to force the console to only accept a number within a certain range?

I have this code where I input a name, and then an integer. The application will then repeat the name entered according to the integer specified. The issue i'm having is, I only want the user to be able to repeat the name a max of 10 times and and…
2
votes
1 answer

C# How do I detect mouse click?

I need to know how to detect a mouse click in a console application (not win forms!). The way I'm trying to do it now is not working. static void Main ( string [ ] args ) { while(true){ if (Mouse.LeftButton ==…
Zachwuzhere
  • 329
  • 3
  • 12
2
votes
1 answer

Unnecessary dlls in dotnet core console app?

I'm just trying build an example dotnet-core 2.0 console app which should be published as an execute file. This requires me to add an RuntimeIdentifier in the csproj file. After publishing my sample application for win-x64, I get a output directory…
ventiseis
  • 3,029
  • 11
  • 32
  • 49
2
votes
1 answer

C# console app - Access to the path is denied

When I run a console app in Visual Studio and open files on my workstation everything runs fine. When I run the same app in Visual Studio and open files on a network share I get an "Access to the path 'xxx' is denied". I have access to the files in…
BeYourOwnGod
  • 2,345
  • 7
  • 30
  • 35
2
votes
3 answers

List in Visual Basic?

I am new to Visual Basic, and I need help. I have previously used Python where you simply create a list of items by simply doing: list = [item1, item2] But I have no idea how I can do this in Visual Basic. Please can someone help me to simply…
Fridge Thrower
  • 95
  • 1
  • 1
  • 7
2
votes
2 answers

In dotnet core how can I ensure only one copy of my application is running?

In the past I have done something like this private static bool AlreadyRunning() { var processes = Process.GetProcesses(); var currentProc = Process.GetCurrentProcess(); logger.Info($"Current proccess: {currentProc.ProcessName}"); …
Loofer
  • 6,841
  • 9
  • 61
  • 102
2
votes
2 answers

Autofac in console applications (convention)

I would like to use Autofac in console application. It is my really first usage. Before that I was using it in ASP.NET MVC only. In MVC project I can setup Autofac in Global.asax, inject IService to controller and we can say more and less it…
2
votes
0 answers

Why is my Qt GUI application started by console one?

I haven't asked that, I created a Qt GUI application that when on release, outside Qt creator it does generate an executable which starts a console application that then start my GUI application. I've used Qt several times before and it never…
Jack
  • 16,276
  • 55
  • 159
  • 284
2
votes
1 answer

Hosting a real WEB API project instead of a simple class

I have read several articles about how does TopShelf works. All of them are saying: Create a Console application Add the Topshelf NuGet package Create a simple testController : ApiController to represent the service logic (I want to have my…
user5032790
2
votes
1 answer

How to set chart title above y-axis?

I have been experimenting with charts and so far I got this experimental code: static void Main(string[] args) { Random rnd = new Random(); Chart thisChart = new Chart(); thisChart.Height = 400; …
ThunD3eR
  • 3,216
  • 5
  • 50
  • 94
2
votes
1 answer

System.ServiceModel.FaultException`1: 'Session was closed. Please, login again' (C# web service)

I've created a web service, and even though it connects and extracts data from a response method, it gets hung up on this error: System.ServiceModel.FaultException`1: 'Session was closed. Please, login again' When I run a step-into the debugging…
2
votes
0 answers

How to dependency inject via constructor - log4net logger created inside program.cs .net core 1.1 console application

I have a custom implementation of log4net for .net core to use with Microsoft.Extensions.Logging.ILoggerFactory and Microsoft.Extensions.Logging.ILoggerProvider few questions.. #1: If i need to use the logger in another class say…
blogs4t
  • 2,329
  • 5
  • 20
  • 33
2
votes
1 answer

Dot net core console application uses Mailkit does not send emails when deployed as azure web job

I am using " Mailkit " to send emails from a dot net core console application (using smtp). It works when i run the application in my local machine and I receive emails. However, when i deployed as an azure webjob, It does not send emails. I could…
blogs4t
  • 2,329
  • 5
  • 20
  • 33
1 2 3
99
100