Bonjour,
j'ai un problème avec mon script:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
@echo off & "%__APPDIR__%chcp.com" 65001 >nul
:debut
set /p mot=Bonjour: 

if %mot%==x ( set rep=OK c'est bon ) & ( goto :voc )
if %mot%==en trois mots ( set rep=Marche pas ) & ( goto :voc )

:voc
echo %mot% = %rep%
goto :debut
Quand j'écris "x" j'ai bien "x = OK c'est bon
mais quand j'écris "en trois mots", la fenêtre dos se ferme
Où est l'erreur?
Merci