first of all plz excuse my poor english skills. I wanted to know if there are any alternatives/similiar functions to fork() and exec() i could use on a windows computer? im using dev-c++ and i thought it was possible to start other programms within my source code; like batch files.
I'd be glad if anyone could help me out.
Greetings
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The concept of fork() is not supported at all in Windows, but beyond that there are several ways of launching child or independent processes. They each have different characteristics and functionality so read the documentation carefully to select the most appropriate to your needs.
Hi there,
first of all plz excuse my poor english skills. I wanted to know if there are any alternatives/similiar functions to fork() and exec() i could use on a windows computer? im using dev-c++ and i thought it was possible to start other programms within my source code; like batch files.
I'd be glad if anyone could help me out.
Greetings
The concept of fork() is not supported at all in Windows, but beyond that there are several ways of launching child or independent processes. They each have different characteristics and functionality so read the documentation carefully to select the most appropriate to your needs.
There is a family of _spawn.. and _exec.. functions, and the system() function described here http://msdn.microsoft.com/en-us/library/aa272867(VS.60).aspx .
Additionally there is the somewhat higher level ShellExecute() already suggested: http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx
Clifford
See ShellExecute() and ShellExecuteEx() Windows API functions.
HTH.