Calling external programs from D
Regan Heath
regan at netwin.co.nz
Wed Apr 5 04:08:01 PDT 2006
On Wed, 05 Apr 2006 00:36:45 -0700, kris <foo at bar.com> wrote:
> Tydr Schnubbis wrote:
>> I'm making a gui app with DWT, and I need a way to run an external,
>> command line tool and get its output. Either directly from the tool's
>> stdout, or by having it write to a file first.
>> I'm working on windows. The system() function is unusable because it
>> opens a new command line window when it starts the tool. That you can
>> get it to close the window again really fast by using 'start' is not
>> good enough
>> It doesn't have to be a portable way. If someone can tell me how to
>> call _popen or something in msvcrt.dll, I would be happy.
>
> I understand Regan posted a module to do exactly what you want. Maybe
> he'll see this, or you may be able to dig it up again from the archives
> (or via google upon the digitalmars site). Reckon the keywords would be
> something like ~ win32 pipe process regan
Here they/it is :)
Regan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pipestream.d
Type: application/octet-stream
Size: 12345 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20060405/df871e81/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: process.d
Type: application/octet-stream
Size: 10443 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20060405/df871e81/attachment-0001.obj
More information about the Digitalmars-d-learn
mailing list