kiboumz
Messages postés120Date d'inscriptionmercredi 17 septembre 2003StatutMembreDernière intervention18 mai 2007
-
16 juin 2006 à 15:56
econs
Messages postés4030Date d'inscriptionmardi 13 mai 2003StatutMembreDernière intervention23 décembre 2008
-
16 juin 2006 à 16:32
Bonjour,
J'aimerais que mon lorsque j'exécute un fichier .bat à partir de mon programme que mon programme attend l'execution de celui-ci avant de continuer l'execution du programme principal.
Cependant, ce n'ai actuellement pas le cas, les 2 se font en parrallèles, et j'ai besoin qu'ils de fassent l'un à la suite de l'autre.
ProphetKy
Messages postés100Date d'inscriptionsamedi 11 janvier 2003StatutMembreDernière intervention16 juin 20062 16 juin 2006 à 16:07
Voila ce que j'utilie pour gérer ton problème.
Dim proc As New System.Diagnostics.Process()
proc.StartInfo.UseShellExecute = False
proc.StartInfo.RedirectStandardError = True
proc.StartInfo.FileName = My.Application.Info.DirectoryPath + "\full.bat "
'Arguments à passer à l'éxécutable à lancer
'Start the process
proc.Start()
' Do not wait for the child process to exit before
' reading to the end of its redirected error stream.
proc.WaitForExit()
--------------------------------------------------------------------------------------------
Avant de poster un message, n'oubliez pas de consulter le reglement.