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.walkson a écrit : ven. 11 oct. 2019 22:40 Là, vous me voyez dans l'inconnu !
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)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)