Autor Beitrag
.NETT
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35

Windows Vista Home Premium
C++ (VS 2008 Express), C# (VS 2008 Express)
BeitragVerfasst: So 17.08.08 21:28 
Hallo
Ich möchte gerne, dass wenn der Benutzer auf einen Button klickt, eine zweite *.exe datei gestartet wird. Wie mache ich das?
1. Wie mache ich das, dass wenn das Programm, aus dem das zweite gestartet wurde, beendet wird, das zweite auch beendet wird?
2. Wie mache ich das, dass wenn das Programm, aus dem das zweite gestartet wurde, beendet wird, das zweite nicht beendet wird?
Vieln dank schon jetzt
mfg
.NETT
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: So 17.08.08 22:18 
ShellExecute. Den Rest morgen, bin müde. Gute Nacht.

EDIT: C#-Forum? Oh, verdammt... :-) War wohl wirklich zu viel gestern...

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell


Zuletzt bearbeitet von Timosch am Mo 18.08.08 20:33, insgesamt 2-mal bearbeitet
Flitzs
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 123
Erhaltene Danke: 7

Win7 x64/86 WinServer 2008 R2 x64
C#/C++/C VS2010
BeitragVerfasst: So 17.08.08 22:37 
Hey,
schau dir mal den Namespace System.Diagnostics.Process an, damit lassen sich auch Punkt 1 u. 2 gut realisieren.

mfg Flitzs
.NETT Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35

Windows Vista Home Premium
C++ (VS 2008 Express), C# (VS 2008 Express)
BeitragVerfasst: Di 19.08.08 21:09 
Joa vielen Dank hat geklappt!!
mfg
.NETT