[Lazarus] Running external process from within Lazarus design package

Bernd prof7bit at gmail.com
Sat Sep 29 12:50:39 CEST 2012


2012/9/28 Bernd <prof7bit at gmail.com>:
> I need to run an external program from within my lazarus package.

Ok, I think I have found this one myself, this seems to work:

uses
  IDEExternToolIntf;


begin
  ...
  Tool := TIDEExternalToolOptions.Create;
  Tool.Filename := '/bin/sh';
  Tool.CmdLineParams := 'DEBUILD.sh';
  Tool.WorkingDirectory := Settings.GetProjectDir;
  Tool.ShowAllOutput := True;
  RunExternalTool(Tool);
  Tool.Free;


My other question (the other thread) regarding the version info is still open.

Bernd




More information about the Lazarus mailing list