In Delphi, I recall that there is an Exec procedure for calling another .exe, and a Chain procedure for transferring to another .exe. I assume that these are also in FPC/Lazarus, but I haven't found any Lazarus documentation for these calls. Could somebody tell me where to look?
Mailing lists / lazarus / 2011-08
Chain procedure in FPC/Lazarus?
5 messages · 3 people ·
- HHoward Lee Harkness 3
- AArí Ricardo Ody 1
- HHoward Page-Clark 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
If I understand your necessity...
.
.
.
Process1: TProcess;
.
.
.
Process1.CurrentDirectory := DiretoryTools;
Process1.CommandLine := DiretorioTools + 'converte "' + lbProSel.Items [i] + '" (width 2048 macropath "' + DiretorioTools +
'" profile "' + DiretorioTools + NomeMacro +
'" framesize min';
Process1.Execute;
Earlier message 10 lines
2011/8/3 "Ar? Ricardo Ody" :
TProcess
That was what I needed. Using that as the search term got me the relevant documentation.
Thanks!
In Delphi, I recall that there is an Exec procedure for calling another .exe, and a Chain…
Howard Lee Harkness wrote 6 lines
try
http://wiki.lazarus.freepascal.org/Executing_External_Programs CreateProcess() is the principal function call.
H.
Thanks! I found it after somebody mentioned TProcess.
