Avez vous testé
RunWait(@comspec & " /c " & "net start" & $service & " /Y",@SystemDir,@SW_HIDE)
avec #RequireAdmin
?RunWait(@comspec & " /c " & "net start" & $service & " /Y",@SystemDir,@SW_HIDE)
avec #RequireAdmin
?Le paramètre #RequireAdmin est une excellente idée.
RunWait(@comspec & " /c " & "net start" & $service & " /Y",@SystemDir,@SW_HIDE)
Code : Tout sélectionner
Case "Démarrer le service"
MsgBox(0,$service,"Démarrage du service " & $service)
; RunWait(@ComSpec & " /c NET START " & $service,@SystemDir,@SW_HIDE)
; OU
; RunWait(@comspec & " /c " & "net start " & $service & " /Y",@SystemDir,@SW_HIDE)