Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Bonne Nuitee Petiots 1.0
- REM Ce script est livre sans aucune garantie particuliere
- :home
- cls
- echo.
- echo ********************************
- echo * *
- echo * Bonne Nuitee Petiots 1.0 *
- echo * by Gigowatt *
- echo * *
- echo ********************************
- echo.
- echo MENU
- echo 1) Programmer l'extinction du PC
- echo 2) Programmer le redemarrage du PC
- echo 3) Annuler la derniere programmation
- echo 4) Quitter
- echo.
- set /p input=Votre choix:
- if "%input%"=="1" goto choix1
- if "%input%"=="2" goto choix2
- if "%input%"=="3" goto choix3
- if "%input%"=="4" goto choix4
- goto home
- :choix1
- Echo Indiquez le nombre de minutes avant extinction:
- set /p "min=Temps(Min): "
- set /a sec=min*60
- shutdown /s -f -t %sec%
- goto home
- :choix2
- Echo Indiquez le nombre de minutes avant redemarrage:
- set /p "min=Temps(Min): "
- set /a sec=min*60
- shutdown /r -f -t %sec%
- goto home
- :choix3
- shutdown -a
- goto home
- :choix4
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement