Programmation .bat question choix multiple.
MR-67
Messages postés
6
Statut
Membre
-
Kemoxas Messages postés 42 Date d'inscription Statut Membre Dernière intervention -
Kemoxas Messages postés 42 Date d'inscription Statut Membre Dernière intervention -
Bonjour, je suis actuellement bloquer dans mon petit programme que j'aimerai développer. Mais pourtant tout me semble correct mais des que je choisi une réponse il s'éteind, pourquoi? svp
voici sont code :
@echo off
title Mini Logicel virus par MR-67
color 01
:barre
cls
set /a FULL = FULL + 1
set BAR=%BAR%Û
set /a NB_BAR = NB_BAR + 2
echo.
echo.
echo Chargement .... %NB_BAR%%%
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo %BAR%
echo %BAR%
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
if %FULL%==50 goto :stpbarre
@ping localhost -n 1 >nul
goto barre
:stpbarre
cls
goto menu
:menu
cls
color 01
echo.
ECHO ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo ºBienvenue sur le generateur de virus cmd º
ECHO ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo 1 : "Eteindre le pc"
echo 2 : "Fermer la session"
echo 3 : "Redemarrer l'ordinateur"
echo 4 : "Arreter un processus"
echo 5 : "Supprimer des fichiers de l'ordinateur"
echo 6 : "Ouvrir un processus à l'infini"
echo 7 : "Ouvrir une page web"
echo 8 : "Ouvrir quelque chose a l'infini"
echo 9 : "Supprimer tout sur le bureau"
echo 10 : "Faire buger l'ordinateur"
echo Q : Quitter
set /p %REP%=(chiffre) :
if %REP%==Q (goto quit)
if %REP%==1 (goto a)
if %REP%==2 (goto b)
if %REP%==3 (goto c)
if %REP%==4 (goto d)
if %REP%==5 (goto e)
if %REP%==6 (goto f)
if %REP%==7 (goto g)
if %REP%==8 (goto h)
if %REP%==9 (goto i)
if %REP%==10 (goto j)
:a
cls
color 01
echo shutdown -s > 1.bat
IF NOT EXIST 1.bat GOTO error ELSE
ECHO Ce fichier est présent
GOTO fin
:error
ECHO l'operation a echoue!
pause
:fin
echo l'operation c'est bien derouler!
pause
goto menu
:b
cls
color 01
echo @echo off Shutdown -l -t 0 > 2.bat
IF NOT EXIST 2.bat GOTO error ELSE
ECHO Ce fichier est présent
GOTO fin
:error
ECHO l'operation a echoue!
pause
:fin
ECHO l'operation c'est bien derouler!
pause
goto menu
:c
echo lol
pause
:e
:f
:g
:h
:i
:j
:quit
exit
voici sont code :
@echo off
title Mini Logicel virus par MR-67
color 01
:barre
cls
set /a FULL = FULL + 1
set BAR=%BAR%Û
set /a NB_BAR = NB_BAR + 2
echo.
echo.
echo Chargement .... %NB_BAR%%%
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo %BAR%
echo %BAR%
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
if %FULL%==50 goto :stpbarre
@ping localhost -n 1 >nul
goto barre
:stpbarre
cls
goto menu
:menu
cls
color 01
echo.
ECHO ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo ºBienvenue sur le generateur de virus cmd º
ECHO ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo 1 : "Eteindre le pc"
echo 2 : "Fermer la session"
echo 3 : "Redemarrer l'ordinateur"
echo 4 : "Arreter un processus"
echo 5 : "Supprimer des fichiers de l'ordinateur"
echo 6 : "Ouvrir un processus à l'infini"
echo 7 : "Ouvrir une page web"
echo 8 : "Ouvrir quelque chose a l'infini"
echo 9 : "Supprimer tout sur le bureau"
echo 10 : "Faire buger l'ordinateur"
echo Q : Quitter
set /p %REP%=(chiffre) :
if %REP%==Q (goto quit)
if %REP%==1 (goto a)
if %REP%==2 (goto b)
if %REP%==3 (goto c)
if %REP%==4 (goto d)
if %REP%==5 (goto e)
if %REP%==6 (goto f)
if %REP%==7 (goto g)
if %REP%==8 (goto h)
if %REP%==9 (goto i)
if %REP%==10 (goto j)
:a
cls
color 01
echo shutdown -s > 1.bat
IF NOT EXIST 1.bat GOTO error ELSE
ECHO Ce fichier est présent
GOTO fin
:error
ECHO l'operation a echoue!
pause
:fin
echo l'operation c'est bien derouler!
pause
goto menu
:b
cls
color 01
echo @echo off Shutdown -l -t 0 > 2.bat
IF NOT EXIST 2.bat GOTO error ELSE
ECHO Ce fichier est présent
GOTO fin
:error
ECHO l'operation a echoue!
pause
:fin
ECHO l'operation c'est bien derouler!
pause
goto menu
:c
echo lol
pause
:e
:f
:g
:h
:i
:j
:quit
exit
A voir également:
- Programmation .bat question choix multiple.
- Creer un fichier .bat - Guide
- Excel cellule choix multiple - Guide
- Bat to exe converter - Télécharger - Édition & Programmation
- Ecran multiple pc - Guide
- Application de programmation - Guide