Bonjours
J'ai besoin d'un programme vbscript qui arrête l'ordinateur en 30 secondes(cette partie est faite). quand je double clique sur mon script il apparait la même chose que lorsqu'on entre la commande shutdown -s -t 30.
voici mon code.
J'aurais besoin que dans la fenêtre qui apparait, il y ait un bouton annuler qui lorsque je cliquerai dessus,la commande shutdown -a s'exécutera.Code:
1
2
3
4 Dim strShutdown strShutdown = "shutdown -s -t 30 -f -m \\" & strComputer set objShell = CreateObject("WScript.Shell") objShell.Run strShutdown
Merci