I have a job in Jenkins, which call some bat file. The bat file starts jar file with parameters. But from log I can see that the bat file started my server, but then it immediately closed it, but I want it to stay running.
the command which I am using is:
SCHTASKS /Create /RU SYSTEM /SC ONSTART /TN MYTASK /TR %PATHTOBATCH%