0

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.

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by ssvetkoff
0

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

http://www.swiftview.com/tech/createprocess.htm

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);
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.