Fonction if exist et else
Résolu/Fermé
A voir également:
- Batch if exist
- If exist batch - Meilleures réponses
- If exist else - Meilleures réponses
- If not exist batch ✓ - Forum Autoit / batch
- 404 not found: requested route ('rms.orange.fr') does not exist. - Forum Matériel & Système
- If out - Forum Matériel & Système
- If exist - Forum Programmation
- If exist java - Forum Java
1 réponse
barnabe0057
Messages postés
14440
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
19 avril 2024
4 907
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