I want to call one command(user defined) from C prog开发者_C百科ram(Windows). Can you tell me the function available?
system()
is the simplest way to call external programs.
It's a matter of doing something like:
system ("runme.exe");
The Win32 API has a lot of process control calls as well, which give you better control and monitoring. Look for CreateProcess
and its brethren.
精彩评论