Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run notepad.exe
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01097929
Message ID:
01098095
Vues:
16
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform