You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
348 B

2 weeks ago
@echo off
:again
set ip=127.0.0.1
set port=6379
netstat -ano|findstr %ip%:%port%|findstr -i ESTABLISHED
if ERRORLEVEL 1 (goto err) else (goto ok)
:err
tasklist|findstr -i "redis-server.exe"
if ERRORLEVEL 1 (start "" "%CD%\..\redis\redis_start.vbs")
:ok
echo Redis Services is running %Date:~0,4%-%Date:~5,2%-%Date:~8,2% %Time:~0,2%:%Time:~3,2%