Autor Beitrag
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Mo 25.08.03 13:05 
Moin,

wie kann ich auf Buttonklick das laufende (Delphi-)Programm nochmal aufrufen?

Moderiert von user profile iconTino: Topic verschoben.

_________________
...To err is human, but to really foul things up requires a computer.
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mo 25.08.03 13:13 
such mal nach ShellExecute und CreateProcess. Hier ein Beispiel, das genau das macht, was du willst:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
uses
  ..., ShellApi;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(0,'open',PChar(ParamStr(0)),'',PChar(ExtractFilePath(ParamStr(0))),SW_SHOW);
end;

_________________
Viele Grüße
Jakob
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 25.08.03 15:09 
Steht auch in unserer FAQ: ...ein Programm starten?

Gruß
Tino