Solved console application

Posted on 2005-04-29
Last Modified: 2010-08-05
Why would anyone want to make a console application???
Question by:bman9111
    LVL 27

    Accepted Solution

    Hi bman9111:
    1) Less overhead
    2) Runs quicker (because of 1)
    3) You might not need a windows or web form to test what you want. (For example, send or receive data through a serial port)
    4) You can still display information through the console

    LVL 1

    Expert Comment

    The biggest advantage of a console app is that it (in experienced hands) is quicker than uisng a graphical interface.  This is because a) all of your commands are in one place, and b) commands can take switches.

    Lets use a common example.  If you want to search for all the text (*.txt) files on your "c:\" drive, you'd have to navigate to windows explorer, hit search, hit all files and directories, type "c:" and then press search.

    In the console all you type is dir c:\*.txt

    As you can imagine, a console app is excellent for utilities.
    LVL 85

    Expert Comment

    by:Mike Tomlinson
    Your console app may be a "utility" that is intended to be called from other apps thru a "Shell()" type call.

    Such as:
    (1) converting files from one format to another so they can be imported or exported to a not so flexible program.
    (2) uncompressing files from a "zip" type package
    (3) satisfying the ridiculous homework assignments of university professors
    (4) etc...

    In the Windows world, we tend to put common utility like functions into either DLLs or COM packages instead of console apps.  In the unix world, however, they are often put into seperate executables that can be chained together...the output of one app is "piped" into the input of the next app.

    LVL 48

    Expert Comment

    Console applications are good for using in batch files.
    Console application is kind of "atomic" component which can be used by high-level GUI applications. For example, VB .NET compiler and linker are console applications. VS IDE runs them showing their results in the Output window. They may be launched also from the command prompt or as part of batch file - this is good for batch project build.
    LVL 2

    Expert Comment

    Personally, I like to use it for trying stuff I don't know :)...
    For example, when you want to learn how to work with Remoting, it's a lot easier to work with two console applications (one for the client and one for the server) than to start working with GUI...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now