停止Jetty
@echo off
wmic process where "executablepath='D:\\jetty-6.1.26\\bin\\Jetty-Service.exe'" delete
启动Jetty
@echo off
start Jetty-Service.exe
启动和停止的bat放在Jetty/bin文件夹下,作为Windows定时任务执行重启
停止Jetty
@echo off
wmic process where "executablepath='D:\\jetty-6.1.26\\bin\\Jetty-Service.exe'" delete
启动Jetty
@echo off
start Jetty-Service.exe