Programmation .bat question choix multiple.

Fermé
MR-67 Messages postés 6 Date d'inscription vendredi 1 mars 2013 Statut Membre Dernière intervention 1 mars 2013 - 1 mars 2013 à 17:39
Kemoxas Messages postés 42 Date d'inscription lundi 25 novembre 2013 Statut Membre Dernière intervention 16 août 2023 - 26 nov. 2013 à 20:15
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



A voir également:

2 réponses

MR-67 Messages postés 6 Date d'inscription vendredi 1 mars 2013 Statut Membre Dernière intervention 1 mars 2013
1 mars 2013 à 17:48
aidez moi svp :(
0
Kemoxas Messages postés 42 Date d'inscription lundi 25 novembre 2013 Statut Membre Dernière intervention 16 août 2023 2
26 nov. 2013 à 20:15
Je peux me tromper mais tu je pence qu'il ne sais pas ou aller donc si tu veux commencer par ta variable barre par ex. met sous la couleur goto barre
0