Hi
I want to know if it is possible to execute a exe from within C#. Say for instance you click on a button it should open notepad?
Is there also a way of checking that the process is still alive? If I want to execute another program after notepad is close how will I do it? In other words if I close notepad I want my C# program to execute another exe file.
Is it possible? I'm quite new to OO.
Best regards
Louis
Loading
LouisPosted Nov 24, 2005, 1:22 AM
This is working perfectly!!
Nirlep KaurPosted Nov 16, 2005, 6:21 AM
Process p;
private
void button1_Click(object sender, System.EventArgs e){
p=Process.Start("Notepad.exe");
}
private void button2_Click(object sender, System.EventArgs e){
if(p.HasExited){
Process.Start("winword.exe");
}
}