Problème avec les ''if'' et ''else'' du Batch
Fermé
Whynot5
-
7 avril 2009 à 23:06
dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 - 8 avril 2009 à 09:51
dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 - 8 avril 2009 à 09:51
A voir également:
- Problème avec les ''if'' et ''else'' du Batch
- Fichier batch - Guide
- Script batch utile ✓ - Forum Programmation
- Input batch - Forum Autoit / batch
- Batch supprimer fichier - Forum Windows
- Msgbox batch ✓ - Forum Autoit / batch
1 réponse
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
8 avril 2009 à 09:51
8 avril 2009 à 09:51
hello
set /p choix=Voulez-vous entrer dans l'application ? Faites ''Yes'' pour oui et ''No'' pour non if "%choix%"=="yes" (echo votre choix, oui) else if "%choix%"=="no" ( echo votre choix, non ) else ( echo vous n'avez pas inscrit le bon choix )