digitalmars.D.learn - running an external .exe
- Funog (1/1) Feb 16 2010 Is it possible to run an external .exe and have access to its standard i...
- BCS (5/8) Feb 16 2010 I think there is a pstream or PipeStream somewhere but I don't remember ...
- Jesse Phillips (5/6) Feb 16 2010 In D2 std.process has an undocumented function:
- =?ISO-8859-1?Q?Pelle_M=E5nsson?= (3/4) Feb 17 2010 You'll want to choose either the input or the output stream, otherwise
- daoryn (2/4) Feb 17 2010 You can try loading the .exe into memory as a library (dll) and passing ...
Is it possible to run an external .exe and have access to its standard input/output? Apparently std.process does not allow this.
Feb 16 2010
Hello Funog,Is it possible to run an external .exe and have access to its standard input/output? Apparently std.process does not allow this.I think there is a pstream or PipeStream somewhere but I don't remember where I saw that. -- ... <IXOYE><
Feb 16 2010
Funog wrote:Is it possible to run an external .exe and have access to its standard input/output? Apparently std.process does not allow this.In D2 std.process has an undocumented function: string shell(string cmd) which will give you the output. But might be undocumented because it doesn't work in Windows. I don't know of anything to manipulate input.
Feb 16 2010
On 02/16/2010 08:09 PM, Funog wrote:Is it possible to run an external .exe and have access to its standard input/output? Apparently std.process does not allow this.You'll want to choose either the input or the output stream, otherwise you might get eaten by a deadlock.
Feb 17 2010
Funog Wrote:Is it possible to run an external .exe and have access to its standard input/output? Apparently std.process does not allow this.You can try loading the .exe into memory as a library (dll) and passing the .exe's entry point (main) to a thread (core.thread.Thread). Just a rant.
Feb 17 2010