Exécuter un .exe depuis une application .NET

Publié le par ------

 

Ces quelques lignes pour exécuter un exécutable depuis une application VB.NET

 

Dim startInfo As System.Diagnostics.ProcessStartInfo

Dim pStart As New System.Diagnostics.Process

startInfo = New System.Diagnostics.ProcessStartInfo("C:\file.exe")

pStart.StartInfo = startInfo

pStart.Start()

pStart.WaitForExit() 'Your code will halt until the exe file has executed.

 

 

Source : http://www.howtodothings.com/computers/a1469-how-to-execute-another-exe-from-vb-net.html

 

Publicité

Publié dans .NET

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article