Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ cmd program run in background

#include <windows.h>  
#include <iostream>     
using namespace std;


int main () {   
    cout<<"Some  information is displayed.. 

";
    Sleep(5000);

    cout<<"wait.. the console is going to hide and run in background.. 
";
    Sleep(5000);

    ShowWindow(FindWindowA("ConsoleWindowClass", NULL), false);

    while(true) {
                 // Do your hidden stuff in here
    }   
return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cmd #program #run #background
ADD COMMENT
Topic
Name
8+4 =