Bat vérifie
philton5000
Messages postés
119
Statut
Membre
-
philton5000 Messages postés 119 Statut Membre -
philton5000 Messages postés 119 Statut Membre -
Bonjour, je voudrais faire un bat qui lorsque je le démarre il vérifie si un autre fichier existe. Si il existe il démarre fais une autre commande si il existe pas il déplace un fichier. Je sais pas comment fonctionner la commande if.
Merci de votre aide
Merci de votre aide
A voir également:
- Bat vérifie
- Creer un fichier .bat - Guide
- Bat to exe converter - Télécharger - Édition & Programmation
- Txt to bat ✓ - Forum Autoit / batch
- Qui bat qui pokemon ✓ - Forum Pokémon
- .Bat echo off ✓ - Forum Programmation
2 réponses
cd %username%\AppData\Roaming\_photo\
IF NOT EXIST photo.bat goto a ELSE goto b
:a
cd \
move photo.bat %username%\AppData\Roaming\_photo\
:b
exit
IF NOT EXIST photo.bat goto a ELSE goto b
:a
cd \
move photo.bat %username%\AppData\Roaming\_photo\
:b
exit