Bonjour,
Voici un batch que j'ai compilé en .com pour le faire tourner comme service Windows :
Le problème que je rencontre est que ce service (ou batch lorsque je fais mes tests) ne fonctionne que pendant +- 5 minutes, après quoi il ne fait plus rien.
Code : 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 @echo off :Start if "%time:~0,2%:%time:~3,2%" == "01:00" goto suite ping -n 30 localhost >nul Goto Start :suite C:\wamp\php\php.exe C:\wamp\www\speedcall\transferts\suppOccupes.php net stop wampapache net stop wampmysqld net stop TAPIConnector net start wampapache net start wampmysqld net start TAPIConnector ping -n 30 localhost >nul Goto Start
Quelqu'un aurait une idée de la cause?
Merci d'avance.
Partager