Autor Beitrag
k-weddige
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 49

Win Vista Business
C# (VS 2008 Professional)
BeitragVerfasst: Do 11.09.03 14:02 
Hallo,
Ich möchte gerne ein Pogramm von einem anderen aus starten. Ich habe leider keine Ahnung, wie ich das machen soll. Kann mir da jemand helfen?
k-weddige

_________________
Meine Programme sind perfekt, der Computer versteht sie bloß nicht.
JustusJonas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Do 11.09.03 14:14 
Versuch's mal mit Suche in: Delphi-Forum, Delphi-Library SHELLEXECUTE. Suche mal hier im Forum danach, da wirst du genug dazu finden!

Greetz
chris_davidi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76

Windows 98 SE
Delphi 3
BeitragVerfasst: Do 11.09.03 14:24 
Ja, genau, mit ShellExecute.

Beispiel:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(Application.Handle, 'open''C:\Programme\MSWorks\msworks.exe'nilnil, SW_SHOW);
end;


Statts SW_SHOW kannst du auch SW_HIDE eingeben, wenn du zum Beispiel willst, dass man das Programm was läuft nicht sehen soll...

Wichtig ist allerdings, dass du die Unit ShellApi in deine Unit-Klausel übernimmst, sonst funktioniert das ganze nicht.

Gruss
Chris
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 11.09.03 16:23 
Hallo k-weddige und :welcome: hier im Forum,

bitte schau dir mal die FAQ an. Dort findest du auf viele Fragen sofort eine Antwort. Außerdem gibt es hier eine Suchfunktion. Diese solltest du vor dem Posten einer Frage auch benutzen.

Gruß
Tino
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 11.09.03 16:31 
:welcome:
k-weddige Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 49

Win Vista Business
C# (VS 2008 Professional)
BeitragVerfasst: Do 11.09.03 19:45 
Ich hab jetzt folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Application.handle, 'open''C:\Pogramme\Microsoft Office\Office\Excel.exe',nil,nil,SW_SHOW);
end;

Ich kann das Pogramm starten und wenn ich auf den Button klicke komt auch kein Fehler. Das Problem ist: Es passirt einfach nichts!
Was kann ich da machen :?:

k-weddige

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.

_________________
Meine Programme sind perfekt, der Computer versteht sie bloß nicht.
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Do 11.09.03 20:03 
Nun, ich glaube nicht, dass Excel bei dir im Pogramme-Ordner ist, sondern im Programme-Ordner. :)

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
JustusJonas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Fr 12.09.03 08:10 
Meistens sind's die einfachsten Sachen und dann kommt man einfach nicht drauf! *g*

Greetz
k-weddige Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 49

Win Vista Business
C# (VS 2008 Professional)
BeitragVerfasst: Sa 13.09.03 09:37 
:oops: Danke!

k-weddige

_________________
Meine Programme sind perfekt, der Computer versteht sie bloß nicht.