I am writing a program that calls system( "c:\pathtofile.exe" ) to launch another program. Does anybody have a suggestionon how to make it so the console window doesn't show up.

Its always nice to find the answer to your own question. I found the answer to my question at :


The function I wanted was. Just thought id post so This thread could help somebody else.

CreateProcess(NULL, " C;\pathtoexe.exe ", NULL, NULL, FALSE,
                             // Suppress the DOS box.
                             CREATE_NO_WINDOW | NORMAL_PRIORITY_CLASS,
                             NULL, NULL, &si, &pi);