digitalmars.D.learn - system("DOS COMMAND PROMPT");
- jicman (5/5) Aug 02 2005 Greetings!
- Regan Heath (10/15) Aug 02 2005 You mean...
- jicman (20/35) Aug 03 2005 Yes. Thanks. Where can I read more about these below?
- Regan Heath (7/45) Aug 03 2005 Looking in std.process I note that most of these are simply wrappers
- jicman (2/49) Aug 03 2005
Greetings! I've searched though digitalmars.com and I have not found, for D, the options for system(); Will anyone be so kind as to show me where I can find this info?k thanks. josé
Aug 02 2005
On Tue, 2 Aug 2005 17:14:04 +0000 (UTC), jicman <jicman_member pathlink.com> wrote:Greetings! I've searched though digitalmars.com and I have not found, for D, the options for system(); Will anyone be so kind as to show me where I can find this info?kYou mean... import std.stdio; import std.process; void main() { system("dir"); } Regan
Aug 02 2005
Regan Heath says...On Tue, 2 Aug 2005 17:14:04 +0000 (UTC), jicman <jicman_member pathlink.com> wrote:Yes. Thanks. Where can I read more about these below? |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. joséGreetings! I've searched though digitalmars.com and I have not found, for D, the options for system(); Will anyone be so kind as to show me where I can find this info?kYou mean... import std.stdio; import std.process; void main() { system("dir"); }
Aug 03 2005
On Wed, 3 Aug 2005 16:25:13 +0000 (UTC), jicman <jicman_member pathlink.com> wrote:Regan Heath says...Looking in std.process I note that most of these are simply wrappers around the C function calls of the same (or similar) name. So, I'd look for some documentation on those C functions eg. man pages, or msdn, or both. ReganOn Tue, 2 Aug 2005 17:14:04 +0000 (UTC), jicman <jicman_member pathlink.com> wrote:Yes. Thanks. Where can I read more about these below? |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.Greetings! I've searched though digitalmars.com and I have not found, for D, the options for system(); Will anyone be so kind as to show me where I can find this info?kYou mean... import std.stdio; import std.process; void main() { system("dir"); }
Aug 03 2005
Oh, ok... thanks. Regan Heath says...On Wed, 3 Aug 2005 16:25:13 +0000 (UTC), jicman <jicman_member pathlink.com> wrote:Regan Heath says...Looking in std.process I note that most of these are simply wrappers around the C function calls of the same (or similar) name. So, I'd look for some documentation on those C functions eg. man pages, or msdn, or both. ReganOn Tue, 2 Aug 2005 17:14:04 +0000 (UTC), jicman <jicman_member pathlink.com> wrote:Yes. Thanks. Where can I read more about these below? |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.Greetings! I've searched though digitalmars.com and I have not found, for D, the options for system(); Will anyone be so kind as to show me where I can find this info?kYou mean... import std.stdio; import std.process; void main() { system("dir"); }
Aug 03 2005