Created
October 10, 2018 04:23
-
-
Save sagnitude/a88401577fadac73c03e0bc53467a9c7 to your computer and use it in GitHub Desktop.
start_jar.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /d C:\path\to\jar | |
for /f "tokens=1" %%A in ('jps -ml ^| find "jarFileName.jar"') do (taskkill /F /PID %%A ) | |
start /b "" java -jar jarFileName.jar >nohup.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment