Browse Source

修改启动、停止脚本

luxueshi 3 years ago
parent
commit
72d906580d
2 changed files with 4 additions and 4 deletions
  1. 2 1
      start.bat
  2. 2 3
      stop.bat

+ 2 - 1
start.bat

@@ -1 +1,2 @@
-javaw -jar -Xms16m -Xmx32m sdk-minitor-1.0-RELEASE.jar 8808 ["基础对象"]
+@echo off
+start sdk-minitor -jar -Xms16m -Xmx32m sdk-minitor-1.0-RELEASE.jar 8808 ["基础对象"]

+ 2 - 3
stop.bat

@@ -1,3 +1,2 @@
-set pid = wmic process where "name like '%javaw%' and commandline like '%[sdk-minitor-1.0-RELEASE]%' " get processid
-echo %pid%
-taskkill -F /pid %pid%
+@echo off
+taskkill /f /im sdk-minitor.exe