Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:24:42+00:00 2026-05-17T01:24:42+00:00

What exactly happens when a .NET console application starts? In the process explorer, when

  • 0

What exactly happens when a .NET console application starts?

In the process explorer, when starting the exe I am wondering why I cannot see a “cmd.exe” process as a parent process for the console application. What exactly is displayed then?

Is there a way to replace the “default” console window by another one? I guess this would mean modifying the “console subsystem”.

Creating a GUI application instead of a console application is not an option as I do not have the source of all possible tools.

Observation:

  • With Mono and Linux, I have no issue at all regarding this and my test app!
  • The font used has an influence, I cannot find a font that fits for everything (even with asia pack installed)
  • Tweaking (Changing font, sizes, …) in registry at HKEY_CURRENT_USER\Console is having an impact and can be defined per executable.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:24:43+00:00Added an answer on May 17, 2026 at 1:24 am

    In the process explorer, when starting the exe I am wondering why I cannot see a “cmd.exe” process as a parent process for the console application. What exactly is displayed then?

    You don’t need cmd.exe to have a console window, any executable with the correct header flag will cause Windows to create a console for it, or connect to the console window of its parent process if its parent has one.

    Is there a way to replace the “default” console window by another one?

    Only by:

    • Changing the compiler flags for your application to be a GUI application and then using the Win32 API AllocConsole to create a console. (Included for completeness, won’t apply here if you cannot rebuild the executable).1
    • Creating an intermediate program that is not a console application (so not associated with its parent console) which then launches your program.
    • Creating an intermediate program that is a console application (so not associated with its parent console) which then launches your program with the CREATE_NEW_CONSOLE flag passed to CreateProcess.2

    1 Editbin.exe can change the flag (editbin /subsystem:WINDOWS), but the application would then need to call AllocConsole.

    2 It is not clear if the CreateNoWindow property of ProcessStartInfo serves the same function for Process.Start in .NET. If it does this intermediary could be written in .NET, but a native solution would be considerably lighter weight—in such a short program having to load .NET will significantly slow things down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What happens exactly when I launch a .NET exe? I know that C# is
I hope this is programming-related enough. What exactly happens during the shutdown process of
(I'm interested in the .NET CLR) What exactly happens when one thread changes the
Possible Duplicate: What exactly happens when you run a .NET executable (step by step
Exactly what happens in TrackViewState Page Event Method in ASP.NET. How it differs from
What exactly happens, in terms of memory, when i declare something like: char arr[4];
I have the following issue and I would like to know what exactly happens.
Does anyone know exactly what happens when you change your Zend site at, say,
Exactly as the subject, How to create oval button in WPF application?
Can somebody explain in a simple manner about what exactly happens with http and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.