How to call a program from another program ?
Quote:
> Hi ! let's my program is called test1.exe, and let's say I want to call
> another program called test2.exe. How do I do it ? Is this OS specific ?
> I don't know if this is OS specific or outside the scope of standard C++,
> but well.. any answer would be apreciated !
See:
_execl, _wexecl, _execv, _wexecv
_execle, _wexecle, _execve, _wexecve
_execlp, _wexeclp, _execvp, _wexecvp
_execlpe, _wexeclpe, _execvpe, _wexecvpe
_spawnl, _wspawnl, _spawnv, _wspawnv
_spawnle, _wspawnle, _spawnve, _wspawnve
_spawnlp, _wspawnlp, _spawnvp, _wspawnvp
_spawnlpe, _wspawnlpe, _spawnvpe, _wspawnvpe
ShellExecute, ShellExecuteEx,
or
CreateProcess
... enough choices for you? ;-) (And at that, I probably missed some!)
-cd