Autor Beitrag
Seraph
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 163

Windows.:siXPack:.
Delphi7 Professional
BeitragVerfasst: Di 23.05.06 10:31 
Hi Leute!

Kann ich es mit dem Befehl "ShellExecute" irgendwie schaffen, dass ich eine Exedatei mit einem gewissen parameter ausführe???

Also zum Beispiel Wordpad.exe soll gleich mit einem bestimmten Dokument geöffnet werden!

Habs mal so probiert:
ausblenden Delphi-Quelltext
1:
ShellExecute(Application.Handle, 'open', PChar('"' + HomeDir() + '\data\wordpad.exe" "' + HomeDir() + '\prepeared_docs\' + DocList.Items.Strings[DocList.ItemIndex] + '.lst"'), nilnil, SW_SHOW);					


Hat aber nicht funktioniert!

Weiß jemand Rat?

Gruß
Seraph


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Di 23.05.2006 um 15:27
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Di 23.05.06 10:34 
Schonmal in der OH nachgesehn? Also da wo du das erste nil schreibst, kannst du die Parameter übergeben.

greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Seraph Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 163

Windows.:siXPack:.
Delphi7 Professional
BeitragVerfasst: Di 23.05.06 12:59 
Danke!
Des hat super gefunzt! :D

Gruß
Seraph