Fonction if exist et else
Résolu/Fermé
A voir également:
- If exist batch
- Batch if exist - Meilleures réponses
- Ifexist - Meilleures réponses
- If exist - Forum Programmation
- If out - Forum Matériel & Système
- {Batch} IF NOT EXIST <mon folder> ne fonctionne pas ✓ - Forum Autoit / batch
- If exist en Java - Forum Java
- The realtek network controller was not found. if deep sleep mode is enabled please plug the cable ✓ - Forum Pilotes (drivers)
1 réponse
barnabe0057
Messages postés
14454
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
30 novembre 2024
4 922
Modifié le 5 nov. 2019 à 21:12
Modifié le 5 nov. 2019 à 21:12
Bonjour,
Est-ce que ça marche mieux comme ça :
Est-ce que ça marche mieux comme ça :
@echo off
cd /d %~dp0
if exist "Installer.bat" (goto :AA) else (goto :AB)
exit
:AB
echo Aurevoir
pause
exit
:AA
echo Salut
pause
5 nov. 2019 à 21:14
Modifié le 5 nov. 2019 à 21:31
Parce que j'ai pas tout pigé.
6 nov. 2019 à 21:39
7 nov. 2019 à 20:01
7 nov. 2019 à 22:31