Autor Beitrag
Capsad
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Do 31.03.05 12:36 
Hallo,
kann mir jemand sagen, wie ich mit Delphi *.exe Dateien ausführen kann, die im selben Ordner liegen, wie das gestartete Programm?
Vielen Dank,
Gruß
Capsad
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 31.03.05 12:40 
:welcome:

Nur ein kurze Antwort:
Suche in: Delphi-Forum, Delphi-Library SHELLEXECUTE
Da das Thema schon oft besprochen wurde. Die Suchfunktion hilft da gut weiter.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Do 31.03.05 12:47 
:welcome: im DF... ;)

Und wenn's gar nicht um's starten geht, sondern um's Verzeichnis, dann suchst du nach Suche in: Delphi-Forum, Delphi-Library PARAMSTR(0). Oder schaust schnell hier:
ausblenden Delphi-Quelltext
1:
ProgrammPfad := ExtractFileDir(ParamStr(0));					

;)
demo88
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 160

Ubuntu 6.04, Win XP
Delphi 7
BeitragVerfasst: Do 31.03.05 14:50 
Heißt das nicht:

ausblenden Delphi-Quelltext
1:
ProgrammPfad := ExtractFilePath(ParamStr(0));					

:idea:
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Do 31.03.05 15:03 
Pfad liefert den genauen Pfad in dem die Datei liegt.
Dir liefert den Pfad zum verzeichniss in dem die Exe liegt.

Lange Rede kurzre sinn:

Bei Dir fehlt der letzte Backslash \ .
Benutzen kann man ohne Probleme beides.