I'm writing a windows application and I needs to run some console applications from it and get their output. I tried two different approaches:
1) Using _popen(command, "rt") 2) Creating a child process with redirected output (CreateProcess(), CreatePipe())
They both work but during the execution of some command a new console window is created and it's very unpleasant and ugly. Is there some way to execute the commands in background without opening a new console?