Ok, ich habs eben geändert
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
var
Filename: String;
begin
Filename := ExtractFilePath(ParamStr(0)) + 'test.exe';
if FileExists(FileName) then showmessage('Ist da') else showmessage('Ist nicht da');
end;