1、
INTERVAL=1800
30分钟重启java程序
@echo off
set INTERVAL=1800
start /min "发送到redis" java -jar C:/Users/Administrator/Desktop/桌面文件/redis发送/videoSDK.jar
timeout %INTERVAL%
:Again
echo start server
taskkill /f /fi "windowtitle eq 发送到redis"
Start /min "发送到redis" java -jar C:/Users/Administrator/Desktop/桌面文件/redis发送/videoSDK.jar
timeout %INTERVAL%
goto Again