Put cmd.exe in the background
Solved
sPaN
-
kiki67100 Posted messages 317 Status Member -
kiki67100 Posted messages 317 Status Member -
Bonjour!
I have a problem in C++. I want to create a program that remains invisible in the background (visible only in processes). I managed to do it, but as soon as I run a system(), a cmd.exe terminal shows up. Even when I do system("@ECHO OFF"), an empty terminal appears. How can I prevent this?
Thank you,
Span
I have a problem in C++. I want to create a program that remains invisible in the background (visible only in processes). I managed to do it, but as soon as I run a system(), a cmd.exe terminal shows up. Even when I do system("@ECHO OFF"), an empty terminal appears. How can I prevent this?
Thank you,
Span
Configuration: Windows XP Firefox 2.0.0.3
10 answers
-
I know how to solve your problem. There's a function in C++ that does this: FindWindow(0, "the title of your window"); then you use PostMessage to tell it to hide HIDE
Kevin -
-
-
and with system("start command");
-
Hi,
With the system() command you can't do that, you can do like this
ShowWindow(GetConsoleHwnd(),SW_SHOW);
Also see FreeConsole();
++
Kevin -
-
-
-
-
Euu Yes but
You know I can't give it here, it's a bit ...
You can contact me here http://astuceskiki.com/?astuce=contact
++
Kevin