Bonjour j'ai ce code.
Code Batch : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 :wait Set Process=Center.Service.exe Set c=0 tasklist /FI "IMAGENAME eq Center.Sevice.exe" 2>NUL | find /I /N "Center.Serice.exe">NUL if "%ERRORLEVEL%"=="0" echo Programm is running goto wait if "%ERRORLEVEL%"=="1" echo Programm not running goto restart :restart echo error has occured, all processes will be restarted taskkill /f /im Center.Service.exe goto wait PAUSE
Malheureusement il ne marche pas et ne fait rien sauf dire que l'appli est lancé.
Si on peu m'aider svp .
CDT
Partager