Bonjour a tous,
Voici mon code
Celui ci me permet de checker si le service est démarré Il me renvoie son etat par vrai ou faux.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Dim objWMIService, objItem, objService Set args = Wscript.Arguments WIN_SERVICE1 = args(0) Set sh = CreateObject("Shell.Application") MsgBox sh.IsServiceRunning(WIN_SERVICE1) if sh.IsServiceRunning(WIN_SERVICE1)= faux then objService.StartService(WIN_SERVICE1) end if
Ma condition est que si celui -ci est faux il doit le démarrer mais le probleme c'est qu il me demande des "
Voir le fichier joint
Merci de votre aide
Partager