|
|||||
Vérifier qu'un fichier existe
Nous
avons parfois besoin de savoir si un fichier a été créé
@echo off
if exist %1.txt goto pro:
echo Le fichier %1.txt n'existe pas
pause
exit /b
:pro
echo Le fichier %1.txt existe
sinon le programme saute directement vers
la ligne comportant le label :pro et affiche le texte suivant:
|
|
||||