mxzhe/ 一月 2, 2019/ 网站分类

@echo off

@echo 启动tomcat
rem start D:\apache-tomcat-7.0.70\bin\startup.bat

setlocal enabledelayedexpansion
:1
netstat -an|findstr 7070 >nul 
if errorlevel 1 (
    echo 端口未开启
    ping /n 10 127.1 >nul
    goto 1
) else (
    echo 端口已开启
	rem start iexplore.exe -k "http://localhost:8080/lfiom-morgan/html/morgan.html" 
	rem start tasklist|findstr /i "chrome.exe" ||start chrome.exe -kiosk "http://www.baidu.com"
	start chrome.exe -kiosk "http://192.168.10.247:7070/"
    exit
)