Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run notepad.exe
Message
 
À
22/02/2006 09:42:20
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01097929
Message ID:
01098126
Vues:
17
>To wait for Notepad to finish you need to remember to call the waitforexit method of the process you started. You can also set window size etc using System.Diagnostics.ProcessStartInfo.
>
>
>
>
> '
>    ' Start a new process (Notepad).
>    '
>    Dim myProcess As Process = System.Diagnostics.Process.Start("MyTextFile.txt")
>    '
>    ' Wait until it ends.
>    '
>    myProcess.WaitForExit()
>
>    MessageBox.Show("Notepad ended: " & myProcess.ExitTime & "." & _
>        System.Environment.NewLine & "Exit Code: " & myProcess.ExitCode)
>    '
>    ' Close the process to free resources.
>    '
>    myProcess.Close()
>
>
Thanks for the additional information.
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform