Actually this is what i want to do;
When a condition appears, my program will close itself and after five minutes it will re-open.
Is it possible with only one .exe -by using any OS property-?
I do it with two .exe
if (close_condition){
//call secondary program
system ("secondary.exe");
return (0);
}
and my secondary program just waits for five minutes and calls the primary one.
main (){
Sleep (300000)//sleep for five minutes;
system ("primary.exe");
return (0);
}
i want to do it without secondary program.
(sorry for poor english)