Autor Beitrag
RFZ
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: So 23.09.07 14:40 
Moin,
eine recht einfaches Problem, leider hab ich bisher keine Lösung gefunden.
Ich möchte gern den eigenen Dateinamen meiner Windows Service Anwendung auslesen.
Application.Exename gibt es aber nicht und der Trick mit paramstr(0) geht auch nicht.
Wär für Hilfe dankbar ;)

Nachtrag: Das Verzeichnis der Anwendung würd auch reichen...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 23.09.07 20:02 
Frag einfach GetModuleName(0) ab. Innerhalb der Hauptanwendung (und auch in Services) sollte das den EXE-Namen liefern.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
RFZ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

WinME, WinXP, Win2k*, Win98*, Win95*, Win3.11*, DOS* (*VMware)
D4 Prof
BeitragVerfasst: Mo 24.09.07 05:41 
Jap, das klappt, vielen Dank ;)