Link to home
Start Free TrialLog in
Avatar of kelvinlaw
kelvinlaw

asked on

how can a C program run another program in same directory?

how can a c program run another program in same directory?
Avatar of Sabnis
Sabnis

using system function from the process.h
Avatar of Paul Maker
either

system("command");

or CreateProcess api call, this gives better control
Avatar of kelvinlaw

ASKER

would u pls teach me how to createprocess api call?
ASKER CERTIFIED SOLUTION
Avatar of Paul Maker
Paul Maker
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
would u pls teach me how to createprocess api call?
u can use
execve also
or use WinExec
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
https://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:
PAQed with A grade to makerp

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Sunny
EE Cleanup Volunteer