A console app will always use the console window it was run in, and windows automatically creates one if it is run from inside windows.