Created
June 1, 2021 15:20
-
-
Save emlautarom1/ab2e73769d48ccdd42cd78f84d77e8ba to your computer and use it in GitHub Desktop.
SFX Batch Java Launcher
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 | |
Set ExecutablePath=%~dp0 | |
For %%A in ("%sfxname%") do ( | |
Set AssetsPath=%%~dpA | |
) | |
cd %AssetsPath% | |
echo AssetsPath: %AssetsPath% | |
echo ExecutablePath: %ExecutablePath% | |
%ExecutablePath%jre\bin\java.exe -Dspring.config.location=%ExecutablePath%application.yml -Dlogging.config=%ExecutablePath%logback-spring.xml -jar %ExecutablePath%application.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment