Programmation batch
Résolu/Fermé
WcsSkwal
Messages postés
109
Date d'inscription
dimanche 16 février 2020
Statut
Membre
Dernière intervention
17 août 2020
-
24 févr. 2020 à 17:47
WcsSkwal Messages postés 109 Date d'inscription dimanche 16 février 2020 Statut Membre Dernière intervention 17 août 2020 - 26 févr. 2020 à 10:08
WcsSkwal Messages postés 109 Date d'inscription dimanche 16 février 2020 Statut Membre Dernière intervention 17 août 2020 - 26 févr. 2020 à 10:08
A voir également:
- Programmation batch
- Fichier batch - Guide
- Programmation - Guide
- Application de programmation - Guide
- Votre programmation n'a pas pu être posée ✓ - Forum Box et Streaming vidéo
- Programmation logo tortue télécharger - Télécharger - Études & Formations
3 réponses
barnabe0057
Messages postés
14440
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
19 avril 2024
4 908
24 févr. 2020 à 21:41
24 févr. 2020 à 21:41
Bonjour,
Oui il existe une commande, il s'agit de TASKLIST.
Oui il existe une commande, il s'agit de TASKLIST.
WcsSkwal
Messages postés
109
Date d'inscription
dimanche 16 février 2020
Statut
Membre
Dernière intervention
17 août 2020
19
25 févr. 2020 à 10:57
25 févr. 2020 à 10:57
voici le code
if {pour savoir si le programme est en cours d'execution} (taskkill /F /IM [le programme]
goto :start )
if {pour savoir si le programme est en cours d'execution} (taskkill /F /IM [le programme]
goto :start )
barnabe0057
Messages postés
14440
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
19 avril 2024
4 908
25 févr. 2020 à 20:20
25 févr. 2020 à 20:20
Comme je l'ai déjà dit : la commande TASKLIST
WcsSkwal
Messages postés
109
Date d'inscription
dimanche 16 février 2020
Statut
Membre
Dernière intervention
17 août 2020
19
25 févr. 2020 à 20:31
25 févr. 2020 à 20:31
alors c'est
if tasklist programme.exe taskkill /F /IM programme.exe
if tasklist programme.exe taskkill /F /IM programme.exe
barnabe0057
Messages postés
14440
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
19 avril 2024
4 908
Modifié le 25 févr. 2020 à 20:37
Modifié le 25 févr. 2020 à 20:37
Pas exactement, voilà comment il faut faire :
tasklist | find "firefox.exe" >nul && taskkill /F /IM firefox.exe
WcsSkwal
Messages postés
109
Date d'inscription
dimanche 16 février 2020
Statut
Membre
Dernière intervention
17 août 2020
19
>
barnabe0057
Messages postés
14440
Date d'inscription
lundi 2 mars 2009
Statut
Contributeur
Dernière intervention
19 avril 2024
26 févr. 2020 à 10:08
26 févr. 2020 à 10:08
merci ça m'aide beaucoup
25 févr. 2020 à 10:52