Hi,
Is there any easy way to open a window and run the output of a console
application in that window?
Best regards,
Paule
----- Original Message -----
From: "Gordon Waters" <[EMAIL PROTECTED]>
To: "Borland's Delphi Discussion List" <[email protected]>
Sent: Sunday, July 31, 2005 8:37 PM
Subject: Re: Executing an external command
>I have use this.
>
> procedure RunAProgram(CmmdRun: string);
> var
> pi : TProcessInformation;
> si : TStartupInfo;
> begin
> with si do begin
> cb := SizeOf(si);
> lpReserved := nil;
> lpDesktop := nil;
> lpTitle := nil;
> dwFlags := 0;
> wShowWindow := SW_normal;
> cbReserved2 := 0;
> lpReserved2 := nil;
> end;
> CreateProcess(nil, PChar(cmmdRun), nil, nil, FALSE, 0, nil, nil, si, pi);
> end;
>
>
> then call
>
> Runaprogram('MyProgram.exe');
>
> you can change the wShowWindow to either show the running app of to hide
> it (SW_HIDE);
>
>
>
>
>
>
> Rainer von Saleski wrote:
>
>>This has got to be a stupid question ... but after two hours of searching,
>>I
>>give up.
>>
>>How do you invoke the execution of an external command line from within
>>Delphi? For example, to run the PKZIP program with specified parameters.
>>
>>I can't imagine that Delphi doesn't include this!
>>
>>Rainer
>>
>>_______________________________________________
>>Delphi mailing list -> [email protected]
>>http://www.elists.org/mailman/listinfo/delphi
>>
>>
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi