Bat vérifie
Fermé
philton5000
Messages postés
100
Date d'inscription
samedi 27 janvier 2018
Statut
Membre
Dernière intervention
20 janvier 2021
-
29 janv. 2019 à 01:34
philton5000 Messages postés 100 Date d'inscription samedi 27 janvier 2018 Statut Membre Dernière intervention 20 janvier 2021 - 1 févr. 2019 à 02:44
philton5000 Messages postés 100 Date d'inscription samedi 27 janvier 2018 Statut Membre Dernière intervention 20 janvier 2021 - 1 févr. 2019 à 02:44
A voir également:
- Bat vérifie
- Fichier bat - Guide
- Bat to exe converter - Télécharger - Édition & Programmation
- .Bat input - Forum Autoit / batch
- Copy bat ✓ - Forum Programmation
- Msgbox bat ✓ - Forum Autoit / batch
2 réponses
philton5000
Messages postés
100
Date d'inscription
samedi 27 janvier 2018
Statut
Membre
Dernière intervention
20 janvier 2021
29 janv. 2019 à 01:41
29 janv. 2019 à 01:41
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
barnabe0057
Messages postés
14440
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
19 avril 2024
4 908
29 janv. 2019 à 23:00
29 janv. 2019 à 23:00
Bonjour,
Ton code est bon :
Ton code est bon :
cd "%AppData%\_photo"
IF NOT EXIST "photo.bat" (goto a) ELSE (goto b)
:a
cd \
move "photo.bat" "%AppData%\_photo"
:b
exit
philton5000
Messages postés
100
Date d'inscription
samedi 27 janvier 2018
Statut
Membre
Dernière intervention
20 janvier 2021
31 janv. 2019 à 12:16
31 janv. 2019 à 12:16
Es-t-il nécessaire de mettre des parenthèses
barnabe0057
Messages postés
14440
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
19 avril 2024
4 908
>
philton5000
Messages postés
100
Date d'inscription
samedi 27 janvier 2018
Statut
Membre
Dernière intervention
20 janvier 2021
31 janv. 2019 à 20:25
31 janv. 2019 à 20:25
Si tu utilises ELSE alors oui les parenthèses sont nécessaires.
philton5000
Messages postés
100
Date d'inscription
samedi 27 janvier 2018
Statut
Membre
Dernière intervention
20 janvier 2021
1 févr. 2019 à 02:44
1 févr. 2019 à 02:44
ha ok merci