Calling executable in C + +

Hello I would like to know what code I use to call an external executable programming using C / C + +

I wanted to create this command in a way that: when I start the application type in the command and the + root directory of the executable that I wanted and pressed enter and I came back "OK!" or if the application did not think the application wanted returned "error file not found!"

someone could give me a sample code please
This is but the code to be this link only works on UNIX systems but need to be so
type start the program and then type for example:

"exec + o caminho da pasta do executavel que eu desejo"

i tried the executable program and returns there as "OK!" or if I type the address of the wrong folder return "ERROR FILE NOT FOUND"

algum codigo de exemplo?
Topic archived. No new replies allowed.