Étape 3: faire un .bat
hors
: Démarrer
CLS
Bonjour tout le monde Echo
Bonjour Set/p = Bonjour
Si % Bonjour % == Salut Bonjour goto
Si % Bonjour % == Bonjour Bonjour goto
Si % Bonjour % == sortie goto fin
: Bonjour
CLS
echo comment vas-tu
Comment la valeur/p = heureux ou triste
Si % Comment % == heureux heureux goto
Si % comment % == triste triste goto
Si % comment % == sortie goto fin
: heureux
CLS
l’écho bien c’est bon.
goto fin
: triste
CLS
écho oh no, j’espère qu’on se sent mieux.
goto fin
: fin