SPECIAL OFFER        Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!

⤷ Get module filename of current process

The GetModuleFileName function retrieves the full path and filename for the executable file containing the specified module.

procedure TForm1.Button1Click(Sender: TObject);
var
  FileName: array[0..128] of Char;
begin
  GetModuleFileName(hInstance, FileName, 128);
  Label1.Caption := FileName;
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes