[fpc-pascal] Linux: How to execute a program, but not to wait until finishes
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Mon Jul 4 17:12:08 CEST 2011
On Mon, 4 Jul 2011, fred f wrote:
> Hi all,
>
> How can I execute an external program, but to let my code continue.
>
> This doesn't work as I want and waits for finishing called app:
>
> ExecuteProcess (MyPathToExe, ' &');
The following will work if you put the 'process' unit in your uses clause:
With TProcess.Create(Nil) do
try
CommandLine:=MyPathToExe;
Execute;
finally
Free;
end;
Michael.
More information about the fpc-pascal
mailing list