Advertisement
Guest User

Bonne Nuitee Petiots

a guest
Oct 13th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.00 KB | None | 0 0
  1. @echo off
  2. title Bonne Nuitee Petiots 1.0
  3. REM Ce script est livre sans aucune garantie particuliere
  4. :home
  5. cls
  6. echo.
  7. echo ********************************
  8. echo *                              *
  9. echo *   Bonne Nuitee Petiots 1.0   *
  10. echo *        by Gigowatt           *
  11. echo *                              *
  12. echo ********************************
  13. echo.
  14. echo MENU
  15. echo 1) Programmer l'extinction du PC
  16. echo 2) Programmer le redemarrage du PC
  17. echo 3) Annuler la derniere programmation
  18. echo 4) Quitter
  19. echo.
  20. set /p input=Votre choix:
  21. if "%input%"=="1" goto choix1
  22. if "%input%"=="2" goto choix2
  23. if "%input%"=="3" goto choix3
  24. if "%input%"=="4" goto choix4
  25. goto home
  26.  
  27. :choix1
  28. Echo Indiquez le nombre de minutes avant extinction:
  29. set /p "min=Temps(Min): "
  30. set /a sec=min*60
  31. shutdown /s -f -t %sec%
  32. goto home
  33. :choix2
  34. Echo Indiquez le nombre de minutes avant redemarrage:
  35. set /p "min=Temps(Min): "
  36. set /a sec=min*60
  37. shutdown /r -f -t %sec%
  38. goto home
  39. :choix3
  40. shutdown -a
  41. goto home
  42. :choix4
  43. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement