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.
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal