Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

Chain procedure in FPC/Lazarus?

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Howard Lee Harkness

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?

Howard Lee Harkness (214) 390-4896

Reply by email

Arí Ricardo Ody

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
----- Original Message ----- From: Howard Lee Harkness Sent: 08/03/11 04:41 PM To: Subject: [Lazarus] Chain procedure in FPC/Lazarus? 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? -- Howard Lee Harkness (214) 390-4896 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110803/1024f17e/attachment.html>

Reply by email

Howard Page-Clark
to Howard Lee Harkness: In Delphi, I recall that there is an Exec procedure for calling another .exe, and a Chain…
Howard Lee Harkness wrote 6 lines
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?

try
http://wiki.lazarus.freepascal.org/Executing_External_Programs CreateProcess() is the principal function call.

H.

Reply by email

Howard Lee Harkness
to Howard Page-Clark

Thanks! I found it after somebody mentioned TProcess.

Howard Page-Clark wrote 20 lines
On 03/8/11 8:41, Howard Lee Harkness wrote: > > 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? > try http://wiki.lazarus.freepascal.org/Executing_External_Programs CreateProcess() is the principal function call. H. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Howard Lee Harkness (214) 390-4896

Reply by email