Discuss calling an executable in the C Programming forum on Dev Shed. calling an executable C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
Posts: 513
Time spent in forums: 2 Days 22 h 45 m 12 sec
Reputation Power: 41
Well, the only ANSI C compliant method is by calling system(). In UNIX and GNU/Linux you can use the fork() and exec() set of functions (see the man pages).
In Windows, I think there's some CreateProcess() function call. Check the win32 API reference for details.
__________________
"A poor programmer is he who blames his tools."
http://analyser.oli.tudelft.nl/