There are
several ways to call an external application with delphi.
I think the easiest way is to create a variable of type TFileRun.
Let’s say that you create a "var F: TFileRun"
Now you can set (for an example):
Code:
F.Directory := 'file path';
F.FileName := 'file name';
F.Parameters := 'parameters';
(and some others)
F.Execute; // to execute F
You can execute any file (not just an exe). If the file is associated with any app, then this app will be executed. I mean you can execute a TXT file and this file will be opened with NotePad (for example).
To control how the external application’s window appears (minimized, maximized, hidden, and so on), use the
ShowCmd property.