停止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