Autor Beitrag
Chrischuh
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 124
Erhaltene Danke: 1

Win 7
Turbo Delphi
BeitragVerfasst: So 26.10.08 12:27 
Hallo,

ich habe ein Programm, dass wissen muss wie es heißt, da es aber häufiger umbenannt wird müsste ich es jedes mal neu complieren.

Gib es eine Funktion, die den eigenen Prozessnamen ausließt.
Also z.B. 'Programm.exe'

Chrischuh
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 26.10.08 12:35 
ExtractFilename(Application.Exename) oder ExtractFilename(ParamStr(0))

_________________
We are, we were and will not be.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 26.10.08 12:47 
Wobei ersteres nur letzteres ausliest.
Chrischuh Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 124
Erhaltene Danke: 1

Win 7
Turbo Delphi
BeitragVerfasst: So 26.10.08 13:13 
Danke, funktioniert.