[Lazarus] ExecuteProcess
Kjow
antispammoni at gmail.com
Fri Jan 20 16:28:16 CET 2012
2012/1/20 Henry Vermaak <henry.vermaak at gmail.com>
>
> There's already something in TProcess that should work. Set
> TProcess.StartupOptions to suoUseShowWindow and set TProcess.ShowWindow to
> swoHIDE (not tested).
>
>
Thank you to all, I converted my program to TProcess and it works very well
:)
...
try
AProcess := TProcess.Create(nil);
AProcess.CommandLine := 'command_prompt_command.exe -with -parameters';
AProcess.Options := AProcess.Options + [poWaitOnExit, poNoConsole];
AProcess.Execute;
AProcess.Free;
finally
end;
...
Best Regards,
Kjow
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120120/4279090c/attachment-0003.html>
More information about the Lazarus
mailing list