[Batch] Problème comparaison chiffres avec IF
Fermé
jejeTech
Messages postés
83
Date d'inscription
vendredi 6 janvier 2006
Statut
Membre
Dernière intervention
19 avril 2012
-
6 juin 2006 à 12:11
CyberDam's 54 - 12 janv. 2007 à 12:08
CyberDam's 54 - 12 janv. 2007 à 12:08
A voir également:
- [Batch] Problème comparaison chiffres avec IF
- If exist ✓ - Forum Autoit / batch
- Vba if not ✓ - Forum Excel
- Echo off batch ✓ - Forum Autoit / batch
- Combien de combinaison possible avec 3 chiffres ✓ - Forum Programmation
- Fichier batch - Guide
1 réponse
Hello!
Entre la ligne commencant par [SET ...] et la ligne commencant par [IF ...], si tu insère une ligne: [echo capacité restante %capacite_rest%], tu remarqueras bien qu'il ne remontes pas l'information voulu.
Essayes plutot une ligne du style:
[FOR /F "delims=" %%i IN ('FINDSTR ^ "test.txt"') DO SET capacite_rest=%%i] (voir [FOR /?], pour plus d'informations)
Cordialement,
Dam's
Entre la ligne commencant par [SET ...] et la ligne commencant par [IF ...], si tu insère une ligne: [echo capacité restante %capacite_rest%], tu remarqueras bien qu'il ne remontes pas l'information voulu.
Essayes plutot une ligne du style:
[FOR /F "delims=" %%i IN ('FINDSTR ^ "test.txt"') DO SET capacite_rest=%%i] (voir [FOR /?], pour plus d'informations)
Cordialement,
Dam's