-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsys_restart.bat
43 lines (43 loc) · 1.23 KB
/
sys_restart.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
echo Bienvenue sur le systeme de reboot John
echo le systeme c est lancer avec succes
color 2
:loop
FOR /F "TOKENS=1 DELIMS=:" %%A IN ('TIME/T') DO SET HH=%%A
FOR /F "TOKENS=2 DELIMS=:" %%A IN ('TIME/T') DO SET MM=%%A
echo il est %HH%:%MM%
if %HH% == 8 (
if %MM% == 00 (
echo Reboot de %HH%:%MM%
taskkill /f /t /im arma3server_x64.exe
timeout /t 3 /nobreak
start "" "startserver.bat"
)
)
if %HH% == 14 (
if %MM% == 00 (
echo Reboot de %HH%:%MM%
taskkill /f /t /im arma3server_x64.exe
timeout /t 3 /nobreak
start "" "startserver.bat"
)
)
if %HH% == 20 (
if %MM% == 00 (
echo Reboot de %HH%:%MM%
taskkill /f /t /im arma3server_x64.exe
timeout /t 3 /nobreak
start "" "startserver.bat"
)
)
if %HH% == 02 (
if %MM% == 00 (
echo Reboot de %HH%:%MM%
taskkill /f /t /im arma3server_x64.exe
timeout /t 3 /nobreak
start "" "startserver.bat"
)
)
echo Systeme de reboot John
timeout /t 60 /nobreak
goto :loop