Autor Beitrag
daimoi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: So 04.04.10 22:29 
Hallo,
ich würde gerne wissen, wie ich den Dateinamen (das vor .exe ;) ) über das Programm selbst ermitteln kann.

Das Programm soll sich selbst neustarten. Daher öffne ich es ein zweites mal und schließe das alte Fenster. Nur um es ein zweites mal zu starten, benötige ich den Dateinamen (dieser könnte ja von dem User geändert worden sein!).

Bitte um schnelle Hilfe,
Danke im Voraus. :)


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mo 05.04.2010 um 23:11
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19274
Erhaltene Danke: 1740

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 04.04.10 22:30 
Hallo und :welcome:

Nun, du möchtest den Exe Namen deiner Applikation. Na dann schreib das doch: ;-)
ausblenden Delphi-Quelltext
1:
2:
3:
Application.ExeName
// oder direkt:
ParamStr(0)
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: So 04.04.10 22:31 
Der Pfad der Anwendung steht in Application.Exename.

_________________
PROGRAMMER: A device for converting coffee into software.
daimoi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: So 04.04.10 22:54 
Perfekt, danke euch beiden. =)