Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run notepad.exe
Message
 
To
21/02/2006 17:31:22
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01097929
Message ID:
01098095
Views:
17
>>I have done this before but I can't find the class to use. I want to start an application (notepad.exe) from within my application at runtime and I don't want my code to continue running until the notepad application is closed. How do I do this?
>
>Have you tried the System.Diagnostics.Process.Start() approach?
>
>
>System.Diagnostics.Process.Start(lcExec)
>
Michel,
Not exactly what I wanted but it got me into the correct namespace and the right class. Below is exactly what I wanted:
System.Diagnostics.Process.Start("notepad.exe").WaitForExit();
MessageBox.Show("Yo");
The messagebox will not appear until the notepad app is closed.

Thanks,
Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform