tags:

views:

31

answers:

1

I want to make an console application of c which can run other applications (exe files). Kindly guide me how can I make it possible so that from my c code i can run other executable files in window OS.

+1  A: 

You can use the CreateProcess Windows API function.

James McNellis
Could you kindly explain little bit more specific?
Arman
@Arman: There are five pages of specifics in the linked MSDN documentation for `CreateProcess`. It tells you which header to include (windows.h), which library to link (kernel32.lib, which should be linked by default), and what the function parameters are. If you can tell me what, specifically, is unclear, perhaps I can explain.
James McNellis
Thanks a lot James, I am really thanks full to you.
Arman