Who is Participating?

There is a solution to this, though it does involve a slight hack of the program. The following is the code of an application which when pasted into a module and compiled, will take your "console application" executable and convert it into a standard executable which will run in the original console window.

Paste this code into a module, save as MakeConsole.Bas or whatever and compile to MakeVBCon.EXE.

Then compile your console app without using the AllocConsole Api call. Run MakeVBCon MyApp.EXE. Then you can run MyApp.Exe in a console window without generating a new one.

What I am looking for is - When I kick off the exe from a console command line, I should continue to operate within the same console (a new console should not be allocated). It should behave in a way similar to an exe built using C.