digitalmars.D.learn - calling another program
- a.c.edwards (3/3) Jun 01 2005 How would I execute program B from within program A.
- clayasaurus (12/18) Jun 01 2005 I think std.process has what you are looking for...
How would I execute program B from within program A. Thanks, Andrew
Jun 01 2005
a.c.edwards wrote:How would I execute program B from within program A. Thanks, AndrewI 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