Neither 'fork' nor 'exec' are valid commands in the cmd.exe shell, COM\WMIC or the WinAPI. "exec" is the name of a method in vb script for the 'WshShell' object, however that doesn't have much to do with what you are asking about here.
To launch a script like you are describing you would usually have to launch the interpreter and pass the name and directory of the script in as one of the arguments.
int pid = fork();
if (pid == 0) {
execl("/usr/bin/python", "python", "python.py", NULL);
}
The only problem is, that the first Python user-input shows up, but when I enter something in the Python user-input, press enter, but then my program jumps back to the C++ and continue the code after the execl...
How do I make my C++ program keep running the Python until it ends?