On Sun, 19 Jul 2020 10:55:56 +0200 (CEST), Michael Van Canneyt
<mich...@freepascal.org> wrote:

>> These are used exactly 1 time each in the full application...
>
>All the more reason to dispense with the unit.
>Less code to maintain.
>

Seems like RunCommandInDir or simply RunCommand can do what the
ExecWait with all its setting up of process flags and whatnot does.
So as you say I could as well discard the unit altogether and put this
call in the main code instead.

Thanks for pointing it out. Original code is from about 2008...

In fact a few years back I created a video handler using ffmpeg as the
processing program and when looking back there I see now I used
RunCommandInDir. And it is also Windows/Linux.
This was a project built entirely with Lazarus/Fpc of course.


-- 
Bo Berglund
Developer in Sweden

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to