|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
calling an executable
hi,
i'm a newbie to ANSI C. Can anybody tell me how i can execute an executable (like php.exe) from C programming langauge. thx in adv w2k-user |
|
#2
|
||||
|
||||
|
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/ |
|
#3
|
||||
|
||||
|
Windows also has WinExec()
|
|
#4
|
|||
|
|||
|
thank you guys.
that's just what i needed. cu w2k-user |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > calling an executable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|