How to set up a Daemon.
Well, the framed text below is to be in a batch file.
Name it "Install_Daemon.bat"
Additional You should be able to kill it.
Name it "Installed_Delete.bat"

How to kill a Daemon.


What to do with these jar files.

@echo off if "%OS%" == "Windows_NT" setlocal SETLOCAL EnableDelayedExpansion @echo: @echo: set CD=%~dp0 CHDIR %CD% @echo: @echo: set CD=%CD% echo This CD: %CD% set CURRENT_DIR=%CD% set CURRENT_DIR=%CURRENT_DIR%   echo CURRENT_DIR=%CURRENT_DIR% @echo: @echo: start /w regedit /e reg1.txt "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit" type reg1.txt | find "JavaHome" > reg2.txt if errorlevel 1 goto ERROR for /f "tokens=2 delims==" %%x in (reg2.txt) do ( set JavaTemp=%%~x echo Regedit: JAVA_HOME path : !JavaTemp! ) if errorlevel 1 goto ERROR @echo: @echo: set JAVA_HOME=!JavaTemp! set JAVA_HOME=%JAVA_HOME%   ECHO JAVA_HOME = %JAVA_HOME% @echo: @echo: set JRE_HOME=%JAVA_HOME%/jre/bin/server/jvm.dll set JRE_HOME=%JRE_HOME%   echo JRE_HOME = %JRE_HOME% @echo: @echo: echo Last Edit 2019.05.15 @echo: @echo: for /F "usebackq tokens=1,2 delims==" %%i in    (`wmic os get LocalDateTime /VALUE 2^>NUL`) do if '.%%i.'=='.LocalDateTime.' set ldt=%%j set ldt=%ldt:~0,4%-%ldt:~4,2%-%ldt:~6,2% @echo: echo Date: %ldt% @echo: @echo: REM Service installation configuration set SERVICE_NAME=Apache_Daemon set PR_INSTALL=%CURRENT_DIR%prunsrv.exe set PR_DISPLAYNAME=Apache_Daemon set PR_DESCRIPTION=Winows as a Service REM Service log configuration set PR_LOGPATH=%CURRENT_DIR% set PR_LOGPREFIX=%SERVICE_NAME% set PR_LOGLEVEL=Info set PR_STDOUTPUT=%CURRENT_DIR%%SERVICE_NAME%_stdout.txt set PR_STDERROR=%CURRENT_DIR%%SERVICE_NAME%_stderr.txt set PR_PIDFILE=%CURRENT_DIR%pid.txt REM gps_tcp.GPS_TCP REM anothorstartstop.AnothorStartStop REM a_daemon.A_Daemon REM apache_daemon.Apache_Daemon REM Path to java installation set PR_JVM=%JRE_HOME% set PR_CLASSPATH=%CURRENT_DIR%AnothorStartStop.jar REM Startup configuration set PR_STARTMODE=jvm REM set PR_STARTIMAGE= set PR_STARTPATH=%CURRENT_DIR% set PR_STARTCLASS=anothorstartstop.AnothorStartStop set PR_STARTMETHOD=start REM set PR_STARTPARAMS=start set PR_STARTUP=auto REM Shutdown configuration set PR_STOPMODE=jvm REM set PR_STOPIMAGE= set PR_STOPPATH=%CURRENT_DIR% set PR_STOPCLASS=anothorstartstop.AnothorStartStop set PR_STOPMETHOD=stop REM set PR_STOPPARAMS=stop set PR_STOPTIMEOUT=0 REM JVM configuration set PR_JVMMS=256 set PR_JVMMX=1024 set PR_JVMSS=4000 set PR_JVMOPTIONS=-Duser.language=DE;-Duser.region=de echo Install the daemon... @echo: "%PR_INSTALL%"//IS//%SERVICE_NAME% @echo: echo net start... net start %SERVICE_NAME% @echo: @echo: :end :eof echo END OF FILE rem Where to find: rem Windows Registry Usage rem The basic Service definitions are maintained under the registry key: rem HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ rem Additional parameters are stored in the registry at: rem HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\ProcRun 2.0\\Parameters rem On 64-bit Windows procrun always uses 32-bit registry view for storing the configuration. rem This means that parameters will be stored inside: rem HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\ProcRun 2.0\ pause