www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - calling another program

reply a.c.edwards <a.c.edwards_member pathlink.com> writes:
How would I execute program B from within program A.

Thanks,
Andrew
Jun 01 2005
parent clayasaurus <clayasaurus gmail.com> writes:
a.c.edwards wrote:
 How would I execute program B from within program A.
 
 Thanks,
 Andrew
 
 
I think std.process has what you are looking for... std.process int system(char[] command) Execute command in a command shell. Returns exit status of command. int execv(char[] program, char[][] arguments) int execve(char[] program, char[][] arguments, char[][] environment) int execvp(char[] program, char[][] arguments) int execvpe(char[] program, char[][] arguments, char[][] environment) Execute program, passing it the arguments and the environment, returning the exit status. The 'p' versions of exec search the PATH environment variable setting for program.
Jun 01 2005