Hiding the console window in a system() call

Posted by Justen on Stack Overflow See other posts from Stack Overflow or by Justen
Published on 2010-06-02T15:46:25Z Indexed on 2010/06/03 5:34 UTC
Read the original article Hit count: 280

Filed under:
|
|

Continuing from this question

With each system call, the function constructs a set of parameters and sends them off to another program that is just console-based. Is there a way I can make it so that no console window pops up for each call?

I've done a search but the ones that aren't a linker issue just aren't working for me. For instance, I tried the _execl call and System::Diagnostics::Process^ myProcess = gcnew System::Diagnostics::Process; but they aren't working.

The _execl will bring a console window up, scroll a bunch of stuff (from the program I called I guess), then close the my app and not even do what it was supposed to do. The System::Diagnostics::Process^ myProcess = gcnew System::Diagnostics::Process; doesn't seem to execute what I want either because the output folder that should contain files, contains nothing.

So I'm open for ideas.

© Stack Overflow or respective owner

Related posts about console

Related posts about clr