0
Execute a program from inside another executable
how can i make an executable file run another executable file? preferably in c++ on running a .exe file, it should run another .exe file present in the same directory.. what are the necessary c++ codes to be included?
3 Answers
+ 2
This varies by the operating system. Take a look at the standard system function http://www.cplusplus.com/reference/cstdlib/system/.
+ 2
#include <stdlib.h>
int system(const char *command);
Should work on Windows and linux systems.
0
thanks :)